Skip to content

Workspace.getLeavesOfType method

Workspace › getLeavesOfType

Unofficial

Get leaves of a specific view type.

Signature:

getLeavesOfType(viewType: TViewType): TypedWorkspaceLeaf<ViewTypeViewMapping[TViewType]>[]

Parameters:

Parameter Type Description
viewType TViewType The view type to get leaves for.

Returns: TypedWorkspaceLeaf<ViewTypeViewMapping[TViewType]>[]The leaves matching the given view type.