@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
17 lines (16 loc) • 560 B
TypeScript
import { FlagNames, Flags } from './flags';
/**
* @returns an object containing all current flags + variations
*
* Flag variations can be overridden to preview/force specific flag variations.
* See `getOverriddenFlags` for details.
*/
export declare const useFlags: () => Flags;
/**
* @param name FlagNames
* @returns the matching flag variation value
*
* Flag variations can be overridden to preview/force specific flag variations.
* See `getOverriddenFlags` for details.
*/
export declare function useFlag<T extends FlagNames>(name: T): Flags[T];