Skip to content

fix(zod): allow inferring specific Resolver type from zodResolver #969

fix(zod): allow inferring specific Resolver type from zodResolver

fix(zod): allow inferring specific Resolver type from zodResolver #969

Re-run triggered December 9, 2023 23:05
Status Failure
Total duration 1m 40s
Artifacts

main.yml

on: pull_request
Lint, and test on Node and
1m 29s
Lint, and test on Node and
Publish Module to NPM on Node ${{ matrix.node }} and ${{ matrix.os }}
0s
Publish Module to NPM on Node ${{ matrix.node }} and ${{ matrix.os }}
Fit to window
Zoom out
Zoom in

Annotations

9 errors
Lint, and test on Node and: zod/src/__tests__/Form.tsx#L25
Type 'Resolver<{ username: string; password: string; }>' is not assignable to type 'Resolver<FormData, any>'.
Lint, and test on Node and: zod/src/__tests__/zod.ts#L12
Argument of type '{ username: string; password: string; repeatPassword: string; enabled: boolean; url: string; dateStr: string; accessToken: string | number; tags: string[]; birthYear?: number | undefined; email?: string | undefined; like?: { ...; }[] | undefined; }' is not assignable to parameter of type '{ username: string; password: string; repeatPassword: string; enabled: boolean; url: string; dateStr: Date; accessToken: string | number; tags: string[]; birthYear?: number | undefined; email?: string | undefined; like?: { ...; }[] | undefined; }'.
Lint, and test on Node and: zod/src/__tests__/zod.ts#L27
Argument of type '{ username: string; password: string; repeatPassword: string; enabled: boolean; url: string; dateStr: string; accessToken: string | number; tags: string[]; birthYear?: number | undefined; email?: string | undefined; like?: { ...; }[] | undefined; }' is not assignable to parameter of type '{ username: string; password: string; repeatPassword: string; enabled: boolean; url: string; dateStr: Date; accessToken: string | number; tags: string[]; birthYear?: number | undefined; email?: string | undefined; like?: { ...; }[] | undefined; }'.
Lint, and test on Node and: zod/src/__tests__/zod.ts#L36
Argument of type '{ password: string; email: string; birthYear: string; like: { id: string; }[]; url: string; }' is not assignable to parameter of type '{ username: string; password: string; repeatPassword: string; enabled: boolean; url: string; dateStr: Date; accessToken: string | number; tags: string[]; birthYear?: number | undefined; email?: string | undefined; like?: { ...; }[] | undefined; }'.
Lint, and test on Node and: zod/src/__tests__/zod.ts#L50
Argument of type '{ password: string; email: string; birthYear: string; like: { id: string; }[]; url: string; }' is not assignable to parameter of type '{ username: string; password: string; repeatPassword: string; enabled: boolean; url: string; dateStr: Date; accessToken: string | number; tags: string[]; birthYear?: number | undefined; email?: string | undefined; like?: { ...; }[] | undefined; }'.
Lint, and test on Node and: zod/src/__tests__/zod.ts#L58
Argument of type '{ password: string; email: string; birthYear: string; like: { id: string; }[]; url: string; }' is not assignable to parameter of type '{ username: string; password: string; repeatPassword: string; enabled: boolean; url: string; dateStr: Date; accessToken: string | number; tags: string[]; birthYear?: number | undefined; email?: string | undefined; like?: { ...; }[] | undefined; }'.
Lint, and test on Node and: zod/src/__tests__/zod.ts#L69
Argument of type '{ password: string; email: string; birthYear: string; like: { id: string; }[]; url: string; }' is not assignable to parameter of type '{ username: string; password: string; repeatPassword: string; enabled: boolean; url: string; dateStr: Date; accessToken: string | number; tags: string[]; birthYear?: number | undefined; email?: string | undefined; like?: { ...; }[] | undefined; }'.
Lint, and test on Node and: zod/src/__tests__/zod.ts#L85
Argument of type '{ username: string; password: string; repeatPassword: string; enabled: boolean; url: string; dateStr: string; accessToken: string | number; tags: string[]; birthYear?: number | undefined; email?: string | undefined; like?: { ...; }[] | undefined; }' is not assignable to parameter of type '{ username: string; password: string; repeatPassword: string; enabled: boolean; url: string; dateStr: Date; accessToken: string | number; tags: string[]; birthYear?: number | undefined; email?: string | undefined; like?: { ...; }[] | undefined; }'.
Lint, and test on Node and
Process completed with exit code 1.