FormidableLabs / groqd

A schema-unaware, runtime and type-safe query builder for GROQ.
https://commerce.nearform.com/open-source/groqd
MIT License
230 stars 16 forks source link

groq-builder Argument of type '[]' is not assignable to parameter of type 'never' in project #267

Closed heggemsnes closed 7 months ago

heggemsnes commented 7 months ago

Is there an existing issue for this?

Code of Conduct

Code Sandbox link

https://github.com/heggemsnes/groq-builder-example

Bug report

Hi!

Started testing out groq-builder for new projects and it looks really good.

Ran across this issue where the IDE complains about `Argument of type '[]' is not assignable to parameter of type 'never'` whenever a projection is used.

This seems like a regression in 0.5.0 as it works correctly in 0.3.0.
heggemsnes commented 7 months ago

See that a fix is coming with #266 so closing :)