Skip to content

Commit 72dc410

Browse files
chore: update types
1 parent c55f90f commit 72dc410

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/types.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -337,16 +337,16 @@ export interface PasswordValidatorType extends Validator<string> {
337337
}
338338

339339
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>
348348
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
352352
}

0 commit comments

Comments
 (0)