shapeIdValidator
See source codeValidator for shape IDs, ensuring they follow the "shape:" format.
shapeIdValidator: T.Validator<TLShapeId>
Example
const validId = shapeIdValidator.validate('shape:abc123') // ✓
const invalidId = shapeIdValidator.validate('page:abc123') // ✗ throws error
Prev
scribbleValidatorNext
textShapeMigrations