@@ -337,16 +337,16 @@ export interface PasswordValidatorType extends Validator<string> {
337
337
}
338
338
339
339
export interface ValidationInstance {
340
- string : ( ) => StringValidator
341
- number : ( ) => NumberValidator
342
- array : < T > ( ) => ArrayValidator < T >
343
- boolean : ( ) => BooleanValidator
344
- enum : < T extends string | number > ( values : readonly T [ ] ) => EnumValidator < T >
345
- date : ( ) => DateValidator
346
- datetime : ( ) => DatetimeValidator
347
- object : < T extends Record < string , any > > ( ) => ObjectValidator < T >
340
+ string : ( ) => StringValidatorType
341
+ number : ( ) => NumberValidatorType
342
+ array : < T > ( ) => ArrayValidatorType < T >
343
+ boolean : ( ) => BooleanValidatorType
344
+ enum : < T extends string | number > ( values : readonly T [ ] ) => EnumValidatorType < T >
345
+ date : ( ) => DateValidatorType
346
+ datetime : ( ) => DatetimeValidatorType
347
+ object : < T extends Record < string , any > > ( ) => ObjectValidatorType < T >
348
348
custom : < T > ( validationFn : ( value : T ) => boolean , message : string ) => CustomValidator < T >
349
- timestamp : ( ) => TimestampValidator
350
- unix : ( ) => UnixValidator
351
- password : ( ) => PasswordValidator
349
+ timestamp : ( ) => TimestampValidatorType
350
+ unix : ( ) => UnixValidatorType
351
+ password : ( ) => PasswordValidatorType
352
352
}
0 commit comments