<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`FileView`](FileView) › [`(constructor)`](FileView/(constructor).md)
## FileView.(constructor)
Constructs a new instance of the `FileView` class
**Signature:**
```typescript
constructor(leaf: WorkspaceLeaf);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>leaf</code> | [`WorkspaceLeaf`](WorkspaceLeaf) | |