- useFile(types?: {
accept: Record<string, string[]>;
description?: string;
}[]): {
create: ((_options?: UseFileSystemAccessShowSaveFileOptions) => Awaitable<void>);
data: Ref<undefined | string | ArrayBuffer | Blob>;
file: Ref<undefined | File>;
fileLastModified: Ref<number>;
fileMIME: Ref<string>;
fileName: Ref<string>;
fileSize: Ref<number>;
fileUrl: Readonly<Ref<undefined | string>>;
isSupported: Ref<boolean>;
open: ((_options?: UseFileSystemAccessCommonOptions) => Awaitable<void>);
save: ((_options?: UseFileSystemAccessShowSaveFileOptions) => Awaitable<void>);
saveAs: ((_options?: UseFileSystemAccessShowSaveFileOptions) => Awaitable<void>);
updateData: (() => Awaitable<void>);
}
-
Parameters
-
Optional
types: {
accept: Record<string, string[]>;
description?: string;
}[]
Returns {
create: ((_options?: UseFileSystemAccessShowSaveFileOptions) => Awaitable<void>);
data: Ref<undefined | string | ArrayBuffer | Blob>;
file: Ref<undefined | File>;
fileLastModified: Ref<number>;
fileMIME: Ref<string>;
fileName: Ref<string>;
fileSize: Ref<number>;
fileUrl: Readonly<Ref<undefined | string>>;
isSupported: Ref<boolean>;
open: ((_options?: UseFileSystemAccessCommonOptions) => Awaitable<void>);
save: ((_options?: UseFileSystemAccessShowSaveFileOptions) => Awaitable<void>);
saveAs: ((_options?: UseFileSystemAccessShowSaveFileOptions) => Awaitable<void>);
updateData: (() => Awaitable<void>);
}
-
create: ((_options?: UseFileSystemAccessShowSaveFileOptions) => Awaitable<void>)
-
- (_options?: UseFileSystemAccessShowSaveFileOptions): Awaitable<void>
-
Parameters
-
Optional
_options: UseFileSystemAccessShowSaveFileOptions
Returns Awaitable<void>
-
data: Ref<undefined | string | ArrayBuffer | Blob>
-
file: Ref<undefined | File>
-
fileLastModified: Ref<number>
-
fileMIME: Ref<string>
-
fileName: Ref<string>
-
fileSize: Ref<number>
-
fileUrl: Readonly<Ref<undefined | string>>
-
isSupported: Ref<boolean>
-
open: ((_options?: UseFileSystemAccessCommonOptions) => Awaitable<void>)
-
- (_options?: UseFileSystemAccessCommonOptions): Awaitable<void>
-
Parameters
-
Optional
_options: UseFileSystemAccessCommonOptions
Returns Awaitable<void>
-
save: ((_options?: UseFileSystemAccessShowSaveFileOptions) => Awaitable<void>)
-
- (_options?: UseFileSystemAccessShowSaveFileOptions): Awaitable<void>
-
Parameters
-
Optional
_options: UseFileSystemAccessShowSaveFileOptions
Returns Awaitable<void>
-
saveAs: ((_options?: UseFileSystemAccessShowSaveFileOptions) => Awaitable<void>)
-
- (_options?: UseFileSystemAccessShowSaveFileOptions): Awaitable<void>
-
Parameters
-
Optional
_options: UseFileSystemAccessShowSaveFileOptions
Returns Awaitable<void>
-
updateData: (() => Awaitable<void>)
-
- (): Awaitable<void>
-
Returns Awaitable<void>