fix: validate type

This commit is contained in:
James
2023-02-14 09:40:09 -05:00
parent ee658a6e9b
commit 7bb0984a12

View File

@@ -88,7 +88,7 @@ export type ValidateOptions<T, S, F> = {
t: TFunction
} & F;
export type Validate<T = any, S = any, F = any> = (value?: T, options?: ValidateOptions<F, S, Partial<F>>) => string | true | Promise<string | true>;
export type Validate<T = any, S = any, F = any> = (value: T, options: ValidateOptions<F, S, Partial<F>>) => string | true | Promise<string | true>;
export type OptionObject = {
label: Record<string, string> | string