Skip to main content

ShopifyImage

interface ShopifyImage {
    id: string
    url: string
    altText: string | null
    width: number
    height: number
}

ShopifyMoney

interface ShopifyMoney {
    amount: string
    currencyCode: string
}

ShopifyPriceRange

interface ShopifyPriceRange {
    minVariantPrice: ShopifyMoney
    maxVariantPrice: ShopifyMoney
}

ShopifySeo

interface ShopifySeo {
    title: string | null
    description: string | null
}

ShopifyPageInfo

Pagination info returned with all list queries.
interface ShopifyPageInfo {
    hasNextPage: boolean
    hasPreviousPage: boolean
    startCursor: string | null
    endCursor: string | null
}

ShopifyConnection

Generic connection type for paginated responses.
interface ShopifyConnection<T> {
    edges: Array<{
        node: T
        cursor: string
    }>
    pageInfo: ShopifyPageInfo
}