UNPKG

react-enable

Version:

feature flags to enable and disable functionality at runtime in a react application

4 lines (3 loc) 306 B
import { FeaturesDispatch } from './FeaturesState'; import { FeatureDescription, FeatureValue } from './FeatureState'; export default function useConsoleOverride(consoleOverride: boolean, features: readonly FeatureDescription[], testFeature: (_: string) => FeatureValue, dispatch: FeaturesDispatch): void;