@flagship.io/react-sdk
Version:
Flagship REACT SDK
11 lines (10 loc) • 378 B
TypeScript
import { type IFSFlag } from './deps.js';
import type { UseFlagshipOutput } from './type.js';
/**
* This hook returns a flag object by its key. If no flag match the given key an empty flag will be returned.
* @param key
* @param defaultValue
* @returns
*/
export declare const useFsFlag: (key: string) => IFSFlag;
export declare const useFlagship: () => UseFlagshipOutput;