Skip to main content

Types

Autocomplete Typescript types

tip

New to Typescript?, check this ;)

Product

models.ts
interface Product {
c: string
d: string
f: number
id: string
l: string
p: string
p_c: string
p_max: string
p_max_c: string
p_min: string
p_min_c: string
s: string
sku: string
skus: string[]
real_sku?: string
t: string
t2: string
u: string
image_id?: string // if using image optimization switch
}

Category

models.ts
interface Category {
d: string
id: string
l: string
p_id: string
t: string
u: string
parent_name?: string
}
models.ts
interface Turbolink {
l: string
t: string
u: string
}
models.ts
 interface PopularSearch {
label: string
}
models.ts
 interface RecentSearch {
label: string
}

Narrow By

models.ts
type Narrow = [FilterGroupName, FilterValue]

type FilterGroupName = string
type FilterValue = string