TLParentId

See source code

The ID of a shape's parent, which can be either a page or another shape.

Shapes can be parented to pages (for top-level shapes) or to other shapes (for shapes inside frames or groups).

type TLParentId = TLPageId | TLShapeId;

Example

// Shape parented to a page
const pageParentId: TLParentId = "page:main";

// Shape parented to another shape (e.g., inside a frame)
const shapeParentId: TLParentId = "shape:frame123";
Prev
TLPageId
Next
TLPointerId