@fgv/ts-web-extras
Version:
Browser-compatible utilities and FileTree implementations
57 lines (27 loc) • 885 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@fgv/ts-web-extras](./ts-web-extras.md) > [isFileHandle](./ts-web-extras.isfilehandle.md)
## isFileHandle() function
Type guard to check if a FileSystemHandle is a file handle
**Signature:**
```typescript
export declare function isFileHandle(handle: FileSystemHandle): handle is FileSystemFileHandle;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
handle
</td><td>
[FileSystemHandle](./ts-web-extras.filesystemhandle_2.md)
</td><td>
The handle to check
</td></tr>
</tbody></table>
**Returns:**
handle is [FileSystemFileHandle](./ts-web-extras.filesystemfilehandle_2.md)
True if the handle is a FileSystemFileHandle