Workspace โ€บ getActiveViewOfType

Workspace.getActiveViewOfType() method

Get the currently active view of a given type.

Signature:

getActiveViewOfType<T extends View>(type: Constructor<T>): T | null;

Parameters

ParameterTypeDescription
typeConstructor<T>

Returns:

T | null