Setu-TS
    Preparing search index...

    Interface FlagGuardOptions

    Options for the createFlagGuard factory.

    0.1.0

    interface FlagGuardOptions {
        context?: FlagContext;
        fallback?: string;
        statusCode?: number;
    }
    Index
    context?: FlagContext

    Static context override for the flag evaluation.

    fallback?: string

    Fallback URL for a 302 redirect when the flag is off.

    statusCode?: number

    HTTP status code when no fallback is provided (default 404).