Skip to content

Workspace.deserializeLayout method

Workspace › deserializeLayout

Unofficial

Deserialize workspace entries into actual Leaf objects.

Signature:

deserializeLayout(leaf: LeafEntry, ribbon?: "left" | "right" | undefined): Promise<WorkspaceLeaf>

Parameters:

Parameter Type Description
leaf LeafEntry Leaf entry to deserialize.
ribbon? "left" | "right" | undefined Whether the leaf belongs to the left or right ribbon.

Returns: Promise<WorkspaceLeaf>A promise that resolves to the deserialized leaf.