mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-03-27 08:44:34 +00:00
The return type of HOCs did not match the reality. The return type was `ComponentType` which allowed StatelessComponent (which does not allow refs by default) to be returned, whereas in reality it was always the class component (`ComponentClass`) that was returned from a HOC.