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
| Parameter | Type | Description |
|---|---|---|
type | Constructor<T> |
Returns:
T | null