Skip to content

Commit f6cfa86

Browse files
Jakub SapalskiKent C. Dodds
Jakub Sapalski
authored and
Kent C. Dodds
committed
fix(TS): add flushEffects() typings (#228)
1 parent 415616f commit f6cfa86

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

typings/index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,8 @@ export function render(
2525
* Unmounts React trees that were mounted with render.
2626
*/
2727
export function cleanup(): void
28+
29+
/**
30+
* Forces React's `useEffect` hook to run synchronously.
31+
*/
32+
export function flushEffects(): void

0 commit comments

Comments
 (0)