Skip to content

groq-builder: zod compatibility #514

groq-builder: zod compatibility

groq-builder: zod compatibility #514

Triggered via pull request January 29, 2024 14:49
@scottrippeyscottrippey
synchronize #257
zod-again
Status Failure
Total duration 48s
Artifacts

static-analysis.yml

on: pull_request
Lint and Type-check
37s
Lint and Type-check
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 2 warnings
Lint and Type-check
Type 'ZodDefault<ZodOptional<ZodString>>' is not assignable to type 'ProjectionFieldConfig<NonNullable<NonNullable<Category>>, string | null> | undefined'.
Lint and Type-check
Type '{ description: string; }' does not satisfy the constraint '{ [x: string & Record<never, never>]: never; _type?: undefined; description?: undefined; slug?: undefined; name?: undefined; _id?: undefined; _createdAt?: undefined; _updatedAt?: undefined; _rev?: undefined; images?: undefined; } & { ...; }'.
Lint and Type-check
Property 'default' does not exist on type 'GroqBuilder<Empty, SchemaConfig> & { string: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { ...; }) | undefined) => ZodString; ... 9 more ...; nullToUndefined: <TParser extends Parser>(parser: TPar...'.
Lint and Type-check
Type '{ id: string; }[]' does not satisfy the constraint '{ id: any; }[] & { [ERROR]: "Types should be strict equal"; }'.
Lint and Type-check
Type 'ZodNullable<ZodString>' is not assignable to type 'string | true | IGroqBuilder | ZodType<any, ZodTypeDef, string> | ParserFunction<string, any> | [ProjectionKeyImpl<{ _type: "variant"; ... 14 more ...; "slug.current": string; }>, Parser<...>] | undefined'.
Lint and Type-check
Type '{ name: string | null; }[]' does not satisfy the constraint '{ [x: string & Record<never, never>]: never; _type?: undefined; description?: undefined; style?: undefined; flavour?: undefined; slug?: undefined; name?: undefined; _id?: undefined; _createdAt?: undefined; ... 5 more ...; price?: undefined; }[] & { ...; }'.
Lint and Type-check
Process completed with exit code 1.
Lint and Type-check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v3, pnpm/action-setup@v2, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Lint and Type-check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/