Skip to content

Validator Overhaul #225

Validator Overhaul

Validator Overhaul #225

Triggered via pull request December 4, 2023 23:48
Status Failure
Total duration 1m 52s
Artifacts

pr.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 2 warnings
Typecheck
This comparison appears to be unintentional because the types '{ value: string; fieldApi: FieldApi<{ name: string; }, "name", <Fn extends BaseSchema | BaseSchemaAsync = BaseSchema | BaseSchemaAsync>() => { ...; }, string, string>; signal: AbortSignal; }' and 'string' have no overlap.
Typecheck
Type '({ value }: { value: never; fieldApi: FieldApi<unknown, string, unknown, never, never>; }) => undefined' is not assignable to type 'BaseSchema | BaseSchemaAsync | ValidateFn<{ name: string; }, "name", <Fn extends BaseSchema | BaseSchemaAsync = BaseSchema | BaseSchemaAsync>() => { ...; }, never> | undefined'.
Typecheck
Type '({ value }: { value: never; fieldApi: FieldApi<unknown, string, unknown, never, never>; }) => undefined' is not assignable to type 'BaseSchema | BaseSchemaAsync | ValidateFn<{ name: string; }, "name", unknown, never> | undefined'.
Typecheck
This comparison appears to be unintentional because the types '{ value: string; fieldApi: FieldApi<{ name: string; }, "name", <Fn extends ZodType<any, ZodTypeDef, any> = ZodType<any, ZodTypeDef, any>>() => { validate(value: unknown, fn: Fn): ValidationError; validateAsync(value: unknown, fn: Fn): Promise<...>; }, string, string>; signal: AbortSignal; }' and 'string' have no overlap.
Typecheck
Type '({ value }: { value: never; fieldApi: FieldApi<unknown, string, unknown, never, never>; }) => undefined' is not assignable to type 'ZodType<any, ZodTypeDef, any> | ValidateFn<{ name: string; }, "name", <Fn extends ZodType<any, ZodTypeDef, any> = ZodType<any, ZodTypeDef, any>>() => { ...; }, never> | undefined'.
Typecheck
Type '({ value }: { value: never; fieldApi: FieldApi<unknown, string, unknown, never, never>; }) => undefined' is not assignable to type 'ZodType<any, ZodTypeDef, any> | ValidateFn<{ name: string; }, "name", unknown, never> | undefined'.
Typecheck
This comparison appears to be unintentional because the types '{ value: string; fieldApi: FieldApi<{ name: string; }, "name", <Fn extends AnySchema = AnySchema>() => { validate(value: unknown, fn: Fn): ValidationError; validateAsync(value: unknown, fn: Fn): Promise<...>; }, string, string>; signal: AbortSignal; }' and 'string' have no overlap.
Typecheck
Type '({ value }: { value: never; fieldApi: FieldApi<unknown, string, unknown, never, never>; }) => undefined' is not assignable to type 'AnySchema | ValidateFn<{ name: string; }, "name", <Fn extends AnySchema = AnySchema>() => { validate(value: unknown, fn: Fn): ValidationError; validateAsync(value: unknown, fn: Fn): Promise<...>; }, never> | undefined'.
Typecheck
Type '({ value }: { value: never; fieldApi: FieldApi<unknown, string, unknown, never, never>; }) => undefined' is not assignable to type 'AnySchema | ValidateFn<{ name: string; }, "name", unknown, never> | undefined'.
Typecheck
Property 'value' does not exist on type '{ firstName: string; }'.
Test
Final attempt failed. Child_process exited with error code 1
Test
Attempt 1 failed. Reason: Child_process exited with error code 1
Test
Attempt 2 failed. Reason: Child_process exited with error code 1