Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "launchdarkly-js-sdk-common"

Basic LaunchDarkly JavaScript client interfaces, shared between the browser SDK and the Electron SDK.

Index

Type aliases

LDEvaluationReason

LDEvaluationReason: NonNullableLDEvaluationReason | null

Describes the reason that a flag evaluation produced a particular value. This is part of the LDEvaluationDetail object returned by [[LDClient.variationDetail]].

Will be null when [[LDOptions.evaluationReasons]] is false.

LDFlagValue

LDFlagValue: any

The types of values a feature flag can have.

Flags can have any JSON-serializable value.

Variables

Const version

version: string

The current version string of the SDK.

Functions

createConsoleLogger

  • createConsoleLogger(minimumLevel: string): LDLogger
  • A basic implementation of logging that uses the global console object. This is used by default in the browser SDK. It sends messages of "debug", "info", "warn", or "error" level (if enable) to console.log(), console.info(), console.warn(), and console.error() respectively.

    To make LDClient use this logger, put it in the logger property of [[LDOptions]].

    Parameters

    • minimumLevel: string

    Returns LDLogger

Generated using TypeDoc