Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dereferencing gives type error #290

Open
2 tasks done
Bijig0 opened this issue Jun 23, 2024 · 0 comments
Open
2 tasks done

Dereferencing gives type error #290

Bijig0 opened this issue Jun 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Bijig0
Copy link

Bijig0 commented Jun 23, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Code Sandbox link

No response

Bug report

Trying out a copy paste example from the docs and getting a type error


  const query = q("*", { isArray: true })
    .filterByType("inventory")
    .grab$({
      data: q.object({
        heroImageUrl: q("types").filter().deref().grabOne("url", q.string()),
      }),
    });

Type 'ArrayQuery' is missing the following properties from type 'ZodType<any, any, any>': _type, _output, _input, _def, and 31 more.ts(2740)

@Bijig0 Bijig0 added the bug Something isn't working label Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant