We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
act
any
React.act
1 parent b6e59f7 commit c1f2957Copy full SHA for c1f2957
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