Skip to content

Commit

Permalink
fix(TS): add flushEffects() typings (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
RiledUpCrow authored and Kent C. Dodds committed Nov 28, 2018
1 parent 415616f commit f6cfa86
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ export function render(
* Unmounts React trees that were mounted with render.
*/
export function cleanup(): void

/**
* Forces React's `useEffect` hook to run synchronously.
*/
export function flushEffects(): void

0 comments on commit f6cfa86

Please sign in to comment.