selectInitialVariant
selectInitialVariant<
T>(variants):T|null
Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/product/render-state.d.ts:43
Initial variant: first available for sale, else first, else null. Generic so narrower variant shapes (e.g. bundle-member reference variants) share the exact same default-selection semantics as the PDP.
Type Parameters
Section titled “Type Parameters”T extends object
Parameters
Section titled “Parameters”variants
Section titled “variants”readonly T[]
Returns
Section titled “Returns”T | null