Interface LDServerBaseClient

A minimal structural interface that any LaunchDarkly server SDK that can be used with createLDServerSession should satisfy.

Remarks

This interface decouples the React SDK from the concrete LDClient type in @launchdarkly/js-server-sdk-common, allowing edge SDKs and other custom server client implementations to be used with createLDServerSession.

See

https://launchdarkly.github.io/js-core/packages/shared/sdk-server/docs/interfaces/LDClient.html for more information.

Hierarchy

  • LDServerBaseClient

Methods

  • Determines the boolean variation of a feature flag, along with evaluation details.

    Parameters

    Returns Promise<LDEvaluationDetailTyped<boolean>>

  • Determines the JSON variation of a feature flag for a context.

    This version is preferred in TypeScript because it returns unknown instead of any, requiring an explicit cast before use.

    Parameters

    Returns Promise<unknown>

  • Determines the JSON variation of a feature flag, along with evaluation details.

    Parameters

    Returns Promise<LDEvaluationDetailTyped<unknown>>

  • Determines the numeric variation of a feature flag, along with evaluation details.

    Parameters

    Returns Promise<LDEvaluationDetailTyped<number>>

  • Determines the string variation of a feature flag, along with evaluation details.

    Parameters

    Returns Promise<LDEvaluationDetailTyped<string>>

Generated using TypeDoc