Storefront types SDK reference

Core data shapes shared by storefront themes.

Import these public values from @upstorr/theme-sdk/v1. Do not import their internal source files.

ThemeChannel

type ThemeChannel = 'retail' | 'wholesale';

ThemeMedia

type ThemeMedia = {
    url: string;
    alt: string | null;
    width: number | null;
    height: number | null;
};
type ThemeNavigationLink = {
    href: string;
    label: string;
};

ThemeSection

type ThemeSection<TContent extends Record<string, unknown> = Record<string, unknown>> = {
    id: string;
    type: string;
    label: string | null;
    order: number;
    hidden: boolean;
    settings: TContent;
    media: Record<string, ThemeMedia | null>;
};