Skip to content

Commit 1187d91

Browse files
committed
Declare fallback for optional react-is symbol
1 parent b95e605 commit 1187d91

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/is/isElementOf.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import type {
55
} from 'react';
66
import { isElement } from 'react-is';
77

8+
declare module 'react-is' {
9+
function isElement(value: any): value is ReactElement;
10+
}
11+
812
/**
913
* Check whether the given element is an element of the given component
1014
*

0 commit comments

Comments
 (0)