Is there a way to declare that a function returns a generic class definition? I have tried the following for non-generic classes, but it does not work for generic ones:
export function composeAll(composeFunction: Function, depsFunction: Function):
(component: any) => typeof React.Component; // works
export function composeAll<V>(composeFunction: Function, depsFunction: Function):
(component: any) => typeof React.Component<V, {}>; // fails
Any solutions or insights would be greatly appreciated. Thank you!