Skip to content

Validator Overhaul #230

Validator Overhaul

Validator Overhaul #230

Triggered via pull request December 6, 2023 03:02
Status Failure
Total duration 1m 40s
Artifacts

pr.yml

on: pull_request
Fit to window
Zoom out
Zoom in

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>'.