Skip to content

v7.27.0

Choose a tag to compare

@squiggler-app squiggler-app released this 03 Sep 08:50
· 51 commits to main since this release
1c95d6d

Minor Changes

  • read query result types from a global SanityQueries interface (#1320) (58b2706)

    Query result types can now be registered on a global SanityQueries interface, which the SanityQueries interface exported from @sanity/client inherits from. client.fetch, ClientReturn and ClientReturnStega resolve registrations made either way, so the declare 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/client is 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 bundled ClientReturnStega could not see module augmentations before.