Skip to content

Commit 3d698b8

Browse files
committed
fix(react): add isMounted() typings to satisfy flow checks.
1 parent e5780f4 commit 3d698b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/drivers/react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type ReactLibraryType = {|
3535
/**
3636
* Util to check if component is currently mounted
3737
*/
38-
function isMounted(component, ReactDOM) : boolean {
38+
function isMounted(component : typeof ReactClassType, ReactDOM : ReactDomType) : boolean {
3939
try {
4040
return Boolean(ReactDOM.findDOMNode(component));
4141
}

0 commit comments

Comments
 (0)