Skip to content

groq-builder: implement "conditionals" feature #493

groq-builder: implement "conditionals" feature

groq-builder: implement "conditionals" feature #493

Triggered via pull request January 16, 2024 15:30
Status Failure
Total duration 42s
Artifacts

static-analysis.yml

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

Annotations

10 errors and 1 warning
Lint and Type-check
Type '{ name: string; price: number; slug: string; }' does not satisfy the constraint 'Simplify<ExtractProjectionResult<Variant, { name: true; price: true; slug: "slug.current"; }>> & { [ERROR]: "Types should be strict equal"; }'.
Lint and Type-check
Type '{ name: string; slug: string; variants: { name: string; price: number; slug: string; msrp: number; }[] | null; }' does not satisfy the constraint '({ slug: string; name: string; variants: ({ slug: string; name: string; msrp: number; price: number; } | { slug: string; name: string; msrp: number; price: number; })[] | null; } | { slug: string; name: string; variants: ({ ...; } | { ...; })[] | null; }) & { ...; }'.
Lint and Type-check
Type '{ name: string; price: number; slug: string; msrp: number; }[]' does not satisfy the constraint 'NonNullable<Simplify<ExtractProjectionResult<NonNullable<Variant>, { msrp: true; name: true; price: true; slug: "slug.current"; [FragmentInputTypeTag]?: Variant | undefined; }>>>[] & { ...; }'.
Lint and Type-check
Type '{ slug: string; name: string; msrp: number; price: number; id: string | undefined; }' does not satisfy the constraint 'Simplify<ExtractProjectionResult<Variant, { msrp: true; name: true; price: true; slug: "slug.current"; [FragmentInputTypeTag]?: Variant | undefined; id: true; }>> & { ...; }'.
Lint and Type-check
Type '{ _type: "category" | "product" | "variant"; _id: string; name: string; }' does not satisfy the constraint 'Simplify<ExtractProjectionResult<Category | Product | Variant, { _type: true; _id: true; name: true; }>> & { ...; }'.
Lint and Type-check
Type '{ name: string; slug: string; msrp: number; styles: string[] | null; }[]' does not satisfy the constraint 'NonNullable<Simplify<ExtractProjectionResult<NonNullable<Variant>, { name: true; slug: "slug.current"; msrp: ["msrp", OptionalParser<number, number>]; styles: GroqBuilder<string[] | null, SchemaConfig>; }>>>[] & { ...; }'.
Lint and Type-check
Type '{ productNames: string[]; categoryNames: string[]; }' does not satisfy the constraint '({ productNames: string[]; categoryNames: string[]; } | { productNames: string[]; categoryNames: string[]; }) & { [ERROR]: "Types should be strict equal"; }'.
Lint and Type-check
Type '{ INVALID: TypeMismatchError<{ error: "⛔️ 'true' can only be used for known properties ⛔️"; expected: "_type" | "description" | "style" | "flavour" | "slug" | "name" | "_id" | "_createdAt" | "_updatedAt" | ... 4 more ... | "price"; actual: "INVALID"; }>; }[]' does not satisfy the constraint 'NonNullable<Simplify<ExtractProjectionResult<NonNullable<Variant>, { INVALID: true; }>>>[] & { [ERROR]: "Types should be strict equal"; }'.
Lint and Type-check
Type '{ name: string; }[]' does not satisfy the constraint 'NonNullable<Simplify<ExtractProjectionResult<NonNullable<Variant>, { name: true; }>>>[] & { [ERROR]: "Types should be strict equal"; }'.
Lint and Type-check
Type '{ id: string | undefined; name: string; price: number; msrp: number; }[]' does not satisfy the constraint 'NonNullable<Simplify<ExtractProjectionResult<NonNullable<Variant>, { id: true; name: true; price: true; msrp: true; }>>>[] & { ...; }'.
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/