Experiment JS Client Documentation - v1.16.0
    Preparing search index...

    Type Alias Variant

    type Variant = {
        expKey?: string;
        key?: string;
        metadata?: Record<string, unknown>;
        payload?: any;
        value?: string;
    }
    Index

    Properties

    expKey?: string

    The experiment key. Used to distinguish two experiments associated with the same flag.

    key?: string

    The key of the variant.

    metadata?: Record<string, unknown>

    Flag, segment, and variant metadata produced as a result of evaluation for the user. Used for system purposes.

    payload?: any

    The attached payload, if any.

    value?: string

    The value of the variant.