Application Load

IProductVariant

The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.

IProductVariant

Primary variant property: its type, localized name and available values.

app/interfaces/orionplace/products/IProduct.ts
TypeScript
export interface IProductVariant {
  // Primary variant-type ID, such as Color or Size.
  id: number;
  // Primary values represented by products in this product group.
  value: IProductVariantValue[];
  // Names of the primary variant type, keyed by language code.
  locale: Record<string, string>;
  // Whether this variant type represents a color: true for a color property,
  // false for another property such as size or material.
  is_color: boolean;
  // Whether the product group has a required secondary variant type. Does not
  // guarantee that matching values have already been loaded.
  second_exists: boolean;
}