Validator Overhaul #225
pr.yml
on: pull_request
Test
1m 41s
Lint
49s
Typecheck
1m 33s
Format
28s
Test Build
54s
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
|