A unique identifier for a shape record.

Shape IDs are branded strings that start with "shape:" followed by a unique identifier. This type-safe approach prevents mixing up different types of record IDs.

type TLShapeId = RecordId<TLUnknownShape>

Example

const shapeId: TLShapeId = createShapeId() // "shape:abc123"
const customId: TLShapeId = createShapeId('my-custom-id') // "shape:my-custom-id"
Prev
TLShape
Next
TLShapePartial