UNPKG

@flagship.io/react-sdk

Version:
11 lines (10 loc) 375 B
import { IFSFlag } from '@flagship.io/js-sdk'; import { UseFlagshipOutput } from './type'; /** * 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;