UNPKG

@fgv/ts-web-extras

Version:

Browser-compatible utilities and FileTree implementations

57 lines (27 loc) 885 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; [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