useFileSystem( options?: UseFileSystemOptions,): { isSupported: boolean; listDirectoryContents: (dirHandle: any) => Promise<FileSystemHandle[]>; openDirectory: () => Promise<any>; openFile: ( fileTypes?: { accept: Record<string, string[]>; description: string }[], ) => Promise<any>; saveFile: ( data: string | Blob | BufferSource, suggestedName?: string, fileTypes?: { accept: Record<string, string[]>; description: string }[], ) => Promise<any>;} Parameters
- options: UseFileSystemOptions = {}
Returns {
isSupported: boolean;
listDirectoryContents: (dirHandle: any) => Promise<FileSystemHandle[]>;
openDirectory: () => Promise<any>;
openFile: (
fileTypes?: { accept: Record<string, string[]>; description: string }[],
) => Promise<any>;
saveFile: (
data: string | Blob | BufferSource,
suggestedName?: string,
fileTypes?: { accept: Record<string, string[]>; description: string }[],
) => Promise<any>;
}