Skip to content

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.

T extends object

readonly T[]

T | null