We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
act
any
React.act
1 parent b6e59f7 commit ff69ebfCopy full SHA for ff69ebf
types/index.d.ts
@@ -251,6 +251,7 @@ export function cleanup(): void
251
* If that's not available (older version of react) then it
252
* simply calls the deprecated version which is ReactTestUtils.act(cb)
253
*/
254
-export const act: typeof reactAct extends never
+// IfAny<typeof reactAct, reactDeprecatedAct, reactAct> from https://stackoverflow.com/a/61626123/3406963
255
+export const act: 0 extends 1 & typeof reactAct
256
? typeof reactDeprecatedAct
257
: typeof reactAct
0 commit comments