Beignet API reference
    Preparing search index...

    App-facing feature flag port.

    type FlagsPort = {
        details<TValue extends FlagValue>(
            flag: FlagDef<TValue>,
            options?: FlagEvaluationOptions<TValue>,
        ): Promise<FlagEvaluationDetails<TValue>>;
        evaluate<TValue extends FlagValue>(
            flag: FlagDef<TValue>,
            options?: FlagEvaluationOptions<TValue>,
        ): Promise<TValue>;
        recordExposure<TValue extends FlagValue>(
            flag: FlagDef<TValue>,
            options?: FlagExposureOptions,
        ): Promise<void>;
        track(event: string, options?: FlagTrackOptions): Promise<void>;
    }
    Index
    • Parameters

      Returns Promise<void>