mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
e591dc44ab086d571aa3ea7dce6e71b99ead3de2
## Summary Just copied the types over from the internal types. Type error was hidden by overly broad FlowFixMe. With `$FlowFixMe[not-a-function]` we would've seen the actual issue: ``` Cannot return `dispatcher.useEffectEvent(...)` because `T` [1] is incompatible with undefined [2].Flow(incompatible-return) ``` ## How did you test this change? - [x] yarn flow dom-node - [x] CI DiffTrain build for commit https://github.com/facebook/react/commit/d12bdcda69afd219f4d91cbd60d6fae2a375d35b.
react-fbsource-import
Description
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%