FeatureFlagOption

db · /index·interface

One selectable option in a feature flag's options list. Pairs a human-readable label with a JSON-safe value to support enum-style flags in the admin UI.

Properties

label
string

Example

import type { FeatureFlagOption } from '@nordcom/commerce-db';
const opt: FeatureFlagOption = { label: 'Blue', value: 'blue' };

FeatureFlagService ReviewService ShopService FeatureFlagRef ResolvedCartLineTokens ResolvedProductCardTokens ResolvedShopTheme ShopBase

Metadata@nordcom/commerce-db@0.1.0Open in GitHub ↗

On this page