diff --git a/src/useFlags.ts b/src/useFlags.ts index 2d794fe..87eced0 100644 --- a/src/useFlags.ts +++ b/src/useFlags.ts @@ -10,10 +10,11 @@ import context, { ReactSdkContext } from './context'; * * @return All the feature flags configured in your LaunchDarkly project */ -const useFlags = (): T => { +// tslint:disable-next-line:no-any +function useFlags = LDFlagSet>(): T { const { flags } = useContext(context); return flags as T; -}; +} export default useFlags;