News for hackers. Stuff that matters.
Re:Visual Studio Code 1.5 by tomduncalf on Friday September 09, 2016 @05:11AM (#12460575)
You can "pass through" props like so:

export var hocFunction: (arg1: any, arg2: any) => <ComponentT>(component: ComponentT) => ComponentT

If you want to add new props as a result of the HOC then see the react-redux .d.ts for a few examples: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/mast...

There are no comments on this comment yet.