<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`Workspace`](Workspace) › [`getActiveViewOfType`](Workspace/getActiveViewOfType)
## Workspace.getActiveViewOfType() method
**Signature:**
```typescript
getActiveViewOfType<T extends View>(type: Constructor<T>): T | null;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>type</code> | [`Constructor`](Constructor)<code><T></code> | |
**Returns:**
`T | null`