UNPKG

@fgv/ts-web-extras

Version:

Browser-compatible utilities and FileTree implementations

57 lines (27 loc) 930 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@fgv/ts-web-extras](./ts-web-extras.md) &gt; [isDirectoryHandle](./ts-web-extras.isdirectoryhandle.md) ## isDirectoryHandle() function Type guard to check if a FileSystemHandle is a directory handle **Signature:** ```typescript export declare function isDirectoryHandle(handle: FileSystemHandle): handle is FileSystemDirectoryHandle; ``` ## 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 [FileSystemDirectoryHandle](./ts-web-extras.filesystemdirectoryhandle_2.md) True if the handle is a FileSystemDirectoryHandle