UNPKG

configcat-react

Version:

ConfigCat is a configuration as a service that lets you manage your features and configurations without actually deploying new code.

8 lines (7 loc) 393 B
import type { IConfigCatClient, IUser, SettingTypeOf, SettingValue } from "@configcat/sdk"; declare function useFeatureFlag<T extends SettingValue>(key: string, defaultValue: T, user?: IUser, providerId?: string): { value: SettingTypeOf<T>; loading: boolean; }; declare function useConfigCatClient(providerId?: string): IConfigCatClient; export { useFeatureFlag, useConfigCatClient };