diff --git a/packages/react-redux/typings/index.d.ts b/packages/react-redux/typings/index.d.ts index e9174f042..16b99ee39 100644 --- a/packages/react-redux/typings/index.d.ts +++ b/packages/react-redux/typings/index.d.ts @@ -19,9 +19,9 @@ declare module '@flopflip/react-redux' { export class ToggleFeature extends React.Component< ToggleComponentProps, any - > {} + > { } - export function createFlopFlipEnhancer(adapter: any, adapterArgs?: any): (next) => () => void; + export function createFlopFlipEnhancer(adapter: any, adapterArgs?: any): (next: any) => () => void; export function flopflipReducer(state: {}, action: {}): any; export function selectFeatureFlag(flagName: FlagName): (state: {}) => Flags; export function selectFeatureFlags(state: {}): Flags; diff --git a/packages/types/index.d.ts b/packages/types/index.d.ts index f4812299b..2a4772679 100644 --- a/packages/types/index.d.ts +++ b/packages/types/index.d.ts @@ -6,7 +6,8 @@ declare module '@flopflip/types' { export type Diff = ({ [P in T]: P } & { [P in U]: never } & { [x: string]: never })[T]; - export type Omit = Pick>; + export type Omit = Pick; export interface ComponentEnhancerWithProps {

( @@ -39,8 +40,8 @@ declare module '@flopflip/types' { untoggledComponent?: React.ComponentType; render?: () => React.ReactNode; children?: - | (({ isFeatureEnabled: boolean }) => React.ReactNode) - | React.ReactNode; + | (({ isFeatureEnabled }: { isFeatureEnabled: boolean }) => React.ReactNode) + | React.ReactNode; isFeatureEnabled: boolean; } export interface ToggleComponentProps extends ToggleComponentCommonProps { @@ -84,15 +85,15 @@ declare module '@flopflip/types' { export class ToggleFeature extends React.Component< ToggleComponentProps, any - > {} + > { } export class ConfigureFlopFlip extends React.Component< ConfigureComponentProps, any - > {} + > { } export class ReconfigureFlopFlip extends React.Component< ReconfigureComponentProps, any - > {} + > { } }