Minor Changes
-
read query result types from a global
SanityQueriesinterface (#1320) (58b2706)Query result types can now be registered on a global
SanityQueriesinterface, which theSanityQueriesinterface exported from@sanity/clientinherits from.client.fetch,ClientReturnandClientReturnStegaresolve registrations made either way, so thedeclare module '@sanity/client'augmentation that Sanity TypeGen has emitted so far keeps working unchanged. The global registry does not depend on module resolution: it is seen whether or not@sanity/clientis a direct dependency of the generated file, however many copies of the client are installed, and from every entry point. On this release line that includes@sanity/client/stega, whose bundledClientReturnStegacould not see module augmentations before.