mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
The current iteration of recompose types have two issues: 1) Only a handful of HOCs infer required props from their children. 2) Even when an HOC does infer props from its children, it does not remove requirements for props it injects. This leads to the parent component rendering a wrapped commponent to not realize that props an HOC is injecting have already been handled and leads to a lot of typing issues. This PR updates a lot of the types to infer injected types and remove / partial them from the required props list that are passed to their parent. Due to a couple of typing issues in the TS language itself there are some missing pieces, namely compose cannot currently be typed. This PR, however, makes huge strides in correcting and inferring types in recompose. |
||
|---|---|---|
| .. | ||
| index.d.ts | ||
| recompose-tests.tsx | ||
| tsconfig.json | ||