react-native-macos/flow
Jordan Brown 46642928c4 Defaults for jest.fn's type parameters
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
2022-10-14 14:32:35 -07:00
..
HermesInternalType.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
JSITimerInternalType.js Migrates off getInstrumentedStats' deprecated fields 2022-07-06 20:00:15 -07:00
Position.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
Stringish.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
console.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
global.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
jest.js Defaults for jest.fn's type parameters 2022-10-14 14:32:35 -07:00
use-sync-external-store.js Replace use-subscripton with use-sync-external-store (#33770) 2022-05-05 19:58:19 -07:00