ProductVariant
interface ProductVariant<T = string> {
id: string;
name: string;
priceAdjustment?: number;
sku: string;
stock: number;
value: T;
}Source: Product.ts:108
Product variant options
Type Parameters
T=string— Type of the variant value
Properties
id: string
Variant identifier
name: string
Variant name (e.g., "Red", "Large")
priceAdjustment: number
Price adjustment for this variant
sku: string
SKU for this variant
stock: number
Stock quantity for this variant
value: T
Variant value