It would be nice if the library exported its types, not only to make it simpler to build wrappers around it, but also to make sure that we don't end up with outdated types on our end after updating groqd.
Currently, these are the only things that can be imported:
import {
q,
z,
sanityImage,
makeSafeQueryRunner,
nullToUndefined,
pipe, // Not sure what this is, it's not documented anywhere
type BaseQuery,
type GroqdParseError,
type InferType,
type Selection,
type TypeFromSelection,
} from "groqd";
Is there an existing issue for this?
Code of Conduct
Feature Request
Whenever I need a type from groqd, I often need to either copy it from the declarations file myself or make an arbitrary query to extract it's type:
It would be nice if the library exported its types, not only to make it simpler to build wrappers around it, but also to make sure that we don't end up with outdated types on our end after updating groqd.
Currently, these are the only things that can be imported: