Closed scottrippey closed 10 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
The way the types are defined in the build output (declare module "../groq-builder"
) causes typescript not to associate those types with the groq-builder
module.
@danteissaias Thanks for pointing that out! I switched the build to use tsc
instead of tsup
and it builds correctly now.
I'm pretty sure this is the wrong place to put this, but I moved the expectType
code into https://www.npmjs.com/package/@saiichihashimoto/test-utils so I can reuse it. I think there were some improvements since you copied it, might be worth importing it directly.
Also, looking forward to this! Runtime validating GROQs sounds very big.
@saiichihashimoto I was just talking today about your expectType
utility and how much I loved it! I'll look into migrating to the package!
What is
groq-builder
?This new package is a potential successor to
groqd
. It has 2 main features:Why a new package?
Instead of creating this as a GroqD v2, it seemed appropriate to publish as a new package. While the syntax is extremely similar, and it ought to be easy to upgrade, there's no code reuse. And GroqD is hard to say 😝
This is an Alpha release
This PR is introducing the package, so this is considered an alpha release. It is not yet feature complete, but will be soon.
TODO: