Returns the parent of this node, if any. This property is not meant to be directly edited. To reparent, see
parent: (BaseNode & ChildrenMixin) | null [readonly]
The root node (i.e.
figma.root) doesn't have a parent.
Components accessed via
instance.mainComponent do not always have a parent. They could be remote components or soft-deleted components.