Skip to content

Documentation / @ripl/core / elementIsShape

Function: elementIsShape() ​

elementIsShape(value): value is Shape<Partial<BaseState>>

Defined in: packages/core/src/core/shape.ts:117

Type guard that checks whether a value is a Shape instance.

Parameters ​

ParameterType
valueunknown

Returns ​

value is Shape<Partial<BaseState>>