Setu-TS
    Preparing search index...

    Interface FlagDefinition

    Definition of a single feature flag.

    0.1.0

    interface FlagDefinition {
        enabled: boolean;
        percentage?: number;
        tenants?: readonly string[];
        users?: readonly string[];
    }
    Index
    enabled: boolean

    Whether the flag is enabled by default.

    percentage?: number

    Optional percentage rollout (0-100).

    tenants?: readonly string[]

    Optional tenant restriction. When present and non-empty, the flag is false for any context whose tenantId is not in this list — including a context with no tenant — and this restriction is evaluated ahead of every other rule (it is not an allowlist: it cannot be overridden by users). When absent, evaluation is unchanged.

    0.2.0

    users?: readonly string[]

    Optional user allowlist — overrides enabled: false.