@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
8 lines (7 loc) • 459 B
TypeScript
import { type TypedReturn } from '@statsig/react-bindings';
import fallbackFeatureGates from '../../__generated__/default_feature_gates';
type FallbackFeatureGates = typeof fallbackFeatureGates;
type FeatureGateName = keyof FallbackFeatureGates;
type FeatureGateValue<Name extends FeatureGateName> = FallbackFeatureGates[Name];
export declare const useFeatureGate: <Name extends FeatureGateName>(name: Name) => TypedReturn<FeatureGateValue<Name>>;
export {};