Skip to main content

Storefront API Types

If you are using TypeScript, pre-generated TypeScript types are available that match the Storefront API's GraphQL schema. These types can be used when you need to manually create an object that matches a Storefront API object's shape.

These types also work really well with the new satisfies operator introduced in TypeScript 4.9, though you don't need to use satisfies to use these types.



Was this page helpful?