@launchdarkly/js-client-sdk-common - v1.35.0
    Preparing search index...

    Interface FlagManager

    Top level manager of flags for the client. LDClient should be using this interface and not any of the specific instances managed by it. Updates from data sources should be directed to the [init] and [upsert] methods of this interface.

    interface FlagManager {
        applyChanges(
            context: Context,
            updates: { [key: string]: ItemDescriptor },
            type: PayloadType,
        ): Promise<void>;
        get(key: string): ItemDescriptor | undefined;
        getAll(): { [key: string]: ItemDescriptor };
        getDebugOverride?(): LDDebugOverride;
        init(
            context: Context,
            newFlags: { [key: string]: ItemDescriptor },
        ): Promise<void>;
        loadCached(context: Context): Promise<boolean>;
        off(callback: FlagsChangeCallback): void;
        on(callback: FlagsChangeCallback): void;
        presetFlags(newFlags: { [key: string]: ItemDescriptor }): void;
        setBootstrap(
            context: Context,
            newFlags: { [key: string]: ItemDescriptor },
        ): void;
        upsert(
            context: Context,
            key: string,
            item: ItemDescriptor,
        ): Promise<boolean>;
    }
    Index