interface ILaunchDarklyFlagsState
Since 0.2.0

The subset of LaunchDarkly's LDFlagsState this provider reads.

getFlagValue is the synchronous read that makes a LaunchDarkly-backed implementation of the synchronous IFeatureFlags.isEnabled possible at all: the state object is fetched asynchronously once, then queried synchronously.

Properties

readonly
valid: boolean

False when the snapshot could not be computed (client offline, no context).

Methods

getFlagValue(key: string): unknown

Reads one flag's value from the recorded snapshot.

Usage

import { type ILaunchDarklyFlagsState } from "feature-flags-plugin/src/index.ts";