You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
693 B
16 lines
693 B
import { FeatureGateEnvOverrides, FeatureGateKey } from '../internal';
|
|
export default class FeatureGating {
|
|
private readonly serverValues;
|
|
private readonly envOverrides;
|
|
constructor(serverValues: {
|
|
[key: string]: boolean;
|
|
}, envOverrides: FeatureGateEnvOverrides);
|
|
isEnabled(experimentKey: FeatureGateKey): boolean;
|
|
/**
|
|
* Test gate override methods
|
|
*/
|
|
static overrideKeyForScope(key: FeatureGateKey, enabled: boolean, scope: () => void): void;
|
|
static overrideKeyForScopeAsync(key: FeatureGateKey, enabled: boolean, scope: () => Promise<void>): Promise<void>;
|
|
static overrideKeyForEachInTest(key: FeatureGateKey, enabled: boolean): void;
|
|
}
|