diff --git a/types/index.d.ts b/types/index.d.ts index 301c7e1..4d7831a 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -120,11 +120,9 @@ export type HOCDeclaration = | DataKey | ((props: Props) => Record); -export interface InferableComponentEnhancerWithProps { -

(component: React.ComponentType

): React.ComponentClass< - Omit & TNeedsProps - >; -} +export type InferableComponentEnhancerWithProps =

( + component: React.ComponentType

, +) => React.ComponentType & TNeedsProps>; export class DenormalizationCache {} @@ -132,7 +130,7 @@ export type HOCProps = { nion: { [dataKey: string]: NionValue }; }; -declare function nion( +declare function nion( ...declarations: [HOCDeclaration, ...Array>] -): InferableComponentEnhancerWithProps; +): InferableComponentEnhancerWithProps; export default nion;