Data types
TypeScript shapes for the store, theme, products, customers and hook slots.
Types describe the shape of data (which fields a product has, for example) so your editor can autocomplete them and catch typos before the code runs. They are removed when the theme is built.
Entries
Describes a product as the products API returns it: name, prices, images, stock flags, category, brand and tags.
StoreDescribes the current store and its store-wide settings: name, logo, address, contacts, social accounts, apps and feature switches.
ThemeDescribes the merchant's theme record: colors, font, live or preview mode, and the settings object your twilight.json declares.
CartDescribes the shopper's cart as the cart API returns it: items, totals, coupon, free-shipping progress, and the Money price shape.
UserDescribes the signed-in customer's profile: name, email, mobile, avatar, preferences and linked social accounts.
Category, MenuItem, Breadcrumb, PageDescribes categories, menu links, breadcrumb steps, and the Page record a route loader returns to name the current page.
ProductOption, ProductSku and friendsDescribes a product's options and their choices, the SKU variants those choices select, back-in-stock alerts and donation progress.
HomeComponentData and home block item typesDescribes the home page blocks a merchant arranges, and the brand, feature, testimonial and slide items some blocks list.
BootData and the settings response typesDescribes the raw store settings response: store, theme, currencies, languages, login and analytics configuration, and echoed headers.
HookName and hook handler typesThe hook slot names and handler types, from a subpath that loads no React code and registers no default handlers.
LayoutProps, ComponentType and other helpersSmall helper types: a custom layout's props, the components the registry stores, loosely shaped JSON data, and nested translations.