UNPKG
@joint/react
Version:
alpha (1.0.0-alpha.1)
latest (1.0.0-alpha.5)
1.0.0-alpha.5
1.0.0-alpha.4
1.0.0-alpha.3
1.0.0-alpha.2
1.0.0-alpha.1
1.0.0-alpha.0
0.1.1-alpha.1
React bindings and hooks for JointJS to build interactive diagrams and graphs.
jointjs.com
@joint/react
/
src
/
utils
/
is-react-element.ts
8 lines
(6 loc)
•
248 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
/* eslint-disable jsdoc/require-jsdoc */
import
type
{ dia }
from
'@joint/core'
;
import
{
ReactElement
}
from
'../models/react-element'
;
export
function
isReactElement
(
value
:
unknown
): value is dia.
Cell
{
return
value
instanceof
ReactElement
; }