Skip to content

findVariantByOptions

const findVariantByOptions: <T>(variants, wanted) => T | null

Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/product/render-state.d.ts:61

The variant whose selectedOptions carry the given values (subset match: unspecified options are free). First exact-subset match wins. Generic so the client element’s narrower Variant shape shares the semantics.

T extends object

readonly T[]

Record<string, string>

T | null