Interface containing elements which are common to both single kind contexts as well as the parts that compose a multi context. For more information see LDSingleKindContext and LDMultiKindContext.

interface LDContextCommon {
    _meta?: LDContextMeta;
    anonymous?: boolean;
    key?: string;
    name?: string;
    [attribute: string]: any;
}

Hierarchy (view full)

Indexable

[attribute: string]: any

Any additional attributes associated with the context.

Properties

Meta attributes are used to control behavioral aspects of the Context, such as private private attributes. See LDContextMeta.privateAttributes as an example.

They cannot be addressed in targeting rules.

anonymous?: boolean

If true, the context will not appear on the Contexts page in the LaunchDarkly dashboard.

key?: string

A unique string identifying a context. This value must be set unless the context is anonymous.

name?: string

The context's name.

You can search for contexts on the Contexts page by name.