@fgv/ts-web-extras
Version:
Browser-compatible utilities and FileTree implementations
53 lines (25 loc) • 875 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) > [FileSystemHandle\_2](./ts-web-extras.filesystemhandle_2.md) > [queryPermission](./ts-web-extras.filesystemhandle_2.querypermission.md)
## FileSystemHandle\_2.queryPermission() method
**Signature:**
```typescript
queryPermission(descriptor?: FileSystemHandlePermissionDescriptor): Promise<PermissionState>;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
descriptor
</td><td>
[FileSystemHandlePermissionDescriptor](./ts-web-extras.filesystemhandlepermissiondescriptor.md)
</td><td>
_(Optional)_
</td></tr>
</tbody></table>
**Returns:**
Promise<PermissionState>