FeatureFlagKind

db · /index·type

Discriminator for a feature flag's intent. behavior flags toggle application logic; section flags gate whether a per-shop page section renders. Absent (undefined) on legacy rows, which the platform treats as behavior — so adding this field is backward-compatible.

Definition

@nordcom/commerce-db
type FeatureFlagKind = 'behavior' | 'section';

'behavior' | 'section'

Example

import type { FeatureFlagKind } from '@nordcom/commerce-db';
const kind: FeatureFlagKind = 'section';

FeatureFlagService ReviewService ShopService FeatureFlagOption FeatureFlagRef ResolvedCartLineTokens ResolvedProductCardTokens ResolvedShopTheme

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

On this page