eas-cli
Version:
EAS command line tool
17 lines (16 loc) • 738 B
TypeScript
import FeatureGateEnvOverrides from './FeatureGateEnvOverrides';
import { FeatureGateKey } from './FeatureGateKey';
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;
}