UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

24 lines 629 B
//#region src/FeatureFlags/FeatureFlagScope.d.ts type FeatureFlags = { [key: string]: boolean | undefined; }; declare class FeatureFlagScope { static create(flags?: FeatureFlags): FeatureFlagScope; static merge(a: FeatureFlagScope, b: FeatureFlagScope): FeatureFlagScope; flags: Map<string, boolean>; constructor(flags?: FeatureFlags); /** * Enable a feature flag */ enable(name: string): void; /** * Disable a feature flag */ disable(name: string): void; /** * Check if a feature flag is enabled */ enabled(name: string): boolean; } //#endregion export { FeatureFlagScope, FeatureFlags };