interface LaunchDarklyProviderConfig
Since 0.2.0

Configuration for the 'launchdarkly' provider arm.

Supply sdkKey for the normal path, or inject client (a prebuilt SDK client) / module (the SDK module) to avoid the lazy npm: import — the seam the provider's unit tests drive.

Properties

readonly
optional
sdkKey: string

The LaunchDarkly SDK key. Required unless client is injected; a missing key with no client throws during register().

readonly
optional
client: ILaunchDarklyClient

A prebuilt client. When present the SDK module is never loaded and sdkKey is not read.

readonly
optional
module: unknown

The SDK module, adapted rather than imported. Lets a test drive the whole construction path without the real package installed.

readonly
optional
fallbackValue: boolean

Value returned by the synchronous isEnabled for a context whose snapshot has not loaded yet, and used as the SDK default in isEnabledAsync. Defaults to false.

readonly
optional
initTimeoutSeconds: number

Seconds to wait for the client's initial connection. Defaults to 5. A timeout is logged and tolerated, leaving the provider degraded rather than failing application startup.

readonly
optional
ldOptions: Readonly<Record<string, unknown>>

Options forwarded verbatim as the SDK init() second argument.

Usage

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