interface LaunchDarklyContext
Since 0.2.0

The LaunchDarkly evaluation context.

The SDK accepts a rich multi-kind context; the provider only ever builds the single-kind user shape, so the facade declares exactly that rather than re-exporting the SDK's own union.

Index Signatures

readonly [attribute: string] : string | number | boolean | undefined

Properties

readonly
kind: "user"

Context kind — always 'user' for the contexts this provider builds.

readonly
key: string

The context key; the anonymous key when no userId was supplied.

readonly
optional
anonymous: boolean

True when no userId was supplied.

Usage

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