Documentation / @ripl/core / typeIsElement
Function: typeIsElement() ​
typeIsElement(
value):value is Element<Partial<BaseState>, ElementEventMap>
Defined in: packages/core/src/core/element.ts:1037
Type guard that checks whether a value is an Element instance.
Parameters ​
| Parameter | Type |
|---|---|
value | unknown |
Returns ​
value is Element<Partial<BaseState>, ElementEventMap>