46642928c4
Summary: This diff adds defaults to Jest.fn's type params. An upcoming change to flow will be more restrictive about how we implicitly instantiation type arguments. Since the argument to jest.fn is often omitted, this signature is the single biggest offender of our new rules. To reduce the error diff, I'm adding reasonable defaults so that the mocked function can still behave like a function without adding extra flow errors where there were none before. Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D40394215 fbshipit-source-id: 2df596b6ba8b54680694e08c432a1e7c94dc2df0 |
||
---|---|---|
.. | ||
HermesInternalType.js | ||
JSITimerInternalType.js | ||
Position.js | ||
Stringish.js | ||
console.js | ||
global.js | ||
jest.js | ||
use-sync-external-store.js |