mathjazz / pontoon

In-place localization tool
https://pontoon.mozilla.org/
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Fix typing for HoC in TypeScript #1304

Open mathjazz opened 3 years ago

mathjazz commented 3 years ago

This issue was created automatically by a script.

Bug 1712442

Bug Reporter: @Pike Depends on: Bug 1685565

For HoCs, the wrapped component should have its props inherit from the hoc props.

We should fix the typings once we moved to TypeScript.

https://www.pluralsight.com/guides/higher-order-composition-typescript-react sounds like a good recipe.