Validator Overhaul #230
Annotations
10 errors
Typecheck
Type '() => { validate({ value }: { value: unknown; }, fn: BaseSchema | BaseSchemaAsync): ValidationError; validateAsync({ value }: { value: unknown; }, fn: BaseSchema | BaseSchemaAsync): Promise<...>; }' is not assignable to type 'undefined'.
|
Typecheck
Type '({ value }: { value: never; fieldApi: FieldApi<unknown, string, undefined, undefined, never>; }) => undefined' is not assignable to type 'FieldValidateFn<{ name: string; }, "name", undefined, undefined, never>'.
|
Typecheck
Type 'FormApi<{ name: string; }, () => { validate({ value }: { value: unknown; }, fn: BaseSchema | BaseSchemaAsync): ValidationError; validateAsync({ value }: { value: unknown; }, fn: BaseSchema | BaseSchemaAsync): Promise<...>; }>' is not assignable to type 'FormApi<{ name: string; }, undefined>'.
|
Typecheck
Type '({ value }: { value: never; fieldApi: FieldApi<unknown, string, undefined, undefined, never>; }) => undefined' is not assignable to type 'FieldValidateFn<{ name: string; }, "name", undefined, undefined, never>'.
|
Typecheck
Type '() => { validate({ value }: { value: unknown; }, fn: ZodType<any, ZodTypeDef, any>): ValidationError; validateAsync({ value }: { value: unknown; }, fn: ZodType<any, ZodTypeDef, any>): Promise<...>; }' is not assignable to type 'undefined'.
|
Typecheck
Type '({ value }: { value: never; fieldApi: FieldApi<unknown, string, undefined, undefined, never>; }) => undefined' is not assignable to type 'FieldValidateFn<{ name: string; }, "name", undefined, undefined, never>'.
|
Typecheck
Type 'FormApi<{ name: string; }, () => { validate({ value }: { value: unknown; }, fn: ZodType<any, ZodTypeDef, any>): ValidationError; validateAsync({ value }: { value: unknown; }, fn: ZodType<...>): Promise<...>; }>' is not assignable to type 'FormApi<{ name: string; }, undefined>'.
|
Typecheck
Type '({ value }: { value: never; fieldApi: FieldApi<unknown, string, undefined, undefined, never>; }) => undefined' is not assignable to type 'FieldValidateFn<{ name: string; }, "name", undefined, undefined, never>'.
|
Typecheck
Type '() => { validate({ value }: { value: unknown; }, fn: AnySchema): ValidationError; validateAsync({ value }: { value: unknown; }, fn: AnySchema): Promise<ValidationError>; }' is not assignable to type 'undefined'.
|
Typecheck
Type '({ value }: { value: never; fieldApi: FieldApi<unknown, string, undefined, undefined, never>; }) => undefined' is not assignable to type 'FieldValidateFn<{ name: string; }, "name", undefined, undefined, never>'.
|