defineShape

Public Function

Parameters
NameDescription

{ type, getShapeUtil, validator, migrations, }

{
  type: ShapeType['type']
  getShapeUtil: () => TLShapeUtilConstructor<
    ShapeType,
    ShapeUtil
  >
  validator?: StoreValidator<ShapeType>
  migrations?: Migrations
}
Returns
TLShapeDef<ShapeType, ShapeUtil>
References

TLUnknownShape, TLShapeUtil, TLShapeUtilConstructor, StoreValidator, Migrations, TLShapeDef

Edit this page
Last edited on 11 May 2023
defaultEmptyAsdownloadDataURLAsFile