Skip to content

Commit

Permalink
fix(react): add isMounted() typings to satisfy flow checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilar committed Feb 4, 2021
1 parent e5780f4 commit 3d698b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type ReactLibraryType = {|
/**
* Util to check if component is currently mounted
*/
function isMounted(component, ReactDOM) : boolean {
function isMounted(component : typeof ReactClassType, ReactDOM : ReactDomType) : boolean {
try {
return Boolean(ReactDOM.findDOMNode(component));
}
Expand Down

0 comments on commit 3d698b8

Please sign in to comment.