fix(zod): allow inferring specific Resolver
type from zodResolver
#969
main.yml
on: pull_request
Lint, and test on Node and
1m 29s
Publish Module to NPM on Node ${{ matrix.node }} and ${{ matrix.os }}
0s
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.
|