shapeIdValidator

See source code

Validator 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
scribbleValidator
Next
textShapeMigrations