@fgv/ts-web-extras 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rush/temp/86c9c1ad46e237e0b957c2442bf0355cf39babba.tar.log +121 -0
- package/.rush/temp/chunked-rush-logs/ts-web-extras.build.chunks.jsonl +40 -0
- package/.rush/temp/operation/build/all.log +40 -0
- package/.rush/temp/operation/build/log-chunks.jsonl +40 -0
- package/.rush/temp/operation/build/state.json +3 -0
- package/.rush/temp/shrinkwrap-deps.json +624 -0
- package/config/api-extractor.json +343 -0
- package/config/jest.config.json +16 -0
- package/config/rig.json +16 -0
- package/dist/ts-web-extras.d.ts +574 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/docs/index.md +34 -0
- package/docs/ts-web-extras.browserhashprovider.hashparts.md +88 -0
- package/docs/ts-web-extras.browserhashprovider.hashstring.md +72 -0
- package/docs/ts-web-extras.browserhashprovider.md +66 -0
- package/docs/ts-web-extras.exportasjson.md +70 -0
- package/docs/ts-web-extras.exportusingfilesystemapi.md +104 -0
- package/docs/ts-web-extras.extractdirectorypath.md +52 -0
- package/docs/ts-web-extras.fileapitreeaccessors.create.md +72 -0
- package/docs/ts-web-extras.fileapitreeaccessors.extractfilemetadata.md +54 -0
- package/docs/ts-web-extras.fileapitreeaccessors.fromdirectoryupload.md +72 -0
- package/docs/ts-web-extras.fileapitreeaccessors.fromfilelist.md +72 -0
- package/docs/ts-web-extras.fileapitreeaccessors.getoriginalfile.md +72 -0
- package/docs/ts-web-extras.fileapitreeaccessors.md +114 -0
- package/docs/ts-web-extras.filepickeraccepttype.accept.md +11 -0
- package/docs/ts-web-extras.filepickeraccepttype.description.md +11 -0
- package/docs/ts-web-extras.filepickeraccepttype.md +75 -0
- package/docs/ts-web-extras.filesystemcreatewritableoptions_2.keepexistingdata.md +11 -0
- package/docs/ts-web-extras.filesystemcreatewritableoptions_2.md +58 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2._symbol.asynciterator_.md +15 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2.entries.md +15 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2.getdirectoryhandle.md +66 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2.getfilehandle.md +66 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2.keys.md +15 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2.kind.md +11 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2.md +146 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2.removeentry.md +66 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2.resolve.md +50 -0
- package/docs/ts-web-extras.filesystemdirectoryhandle_2.values.md +15 -0
- package/docs/ts-web-extras.filesystemfilehandle_2.createwritable.md +52 -0
- package/docs/ts-web-extras.filesystemfilehandle_2.getfile.md +15 -0
- package/docs/ts-web-extras.filesystemfilehandle_2.kind.md +11 -0
- package/docs/ts-web-extras.filesystemfilehandle_2.md +92 -0
- package/docs/ts-web-extras.filesystemgetdirectoryoptions_2.create.md +11 -0
- package/docs/ts-web-extras.filesystemgetdirectoryoptions_2.md +58 -0
- package/docs/ts-web-extras.filesystemgetfileoptions_2.create.md +11 -0
- package/docs/ts-web-extras.filesystemgetfileoptions_2.md +58 -0
- package/docs/ts-web-extras.filesystemhandle_2.issameentry.md +50 -0
- package/docs/ts-web-extras.filesystemhandle_2.kind.md +11 -0
- package/docs/ts-web-extras.filesystemhandle_2.md +119 -0
- package/docs/ts-web-extras.filesystemhandle_2.name.md +11 -0
- package/docs/ts-web-extras.filesystemhandle_2.querypermission.md +52 -0
- package/docs/ts-web-extras.filesystemhandle_2.requestpermission.md +52 -0
- package/docs/ts-web-extras.filesystemhandlepermissiondescriptor.md +58 -0
- package/docs/ts-web-extras.filesystemhandlepermissiondescriptor.mode.md +11 -0
- package/docs/ts-web-extras.filesystemremoveoptions_2.md +58 -0
- package/docs/ts-web-extras.filesystemremoveoptions_2.recursive.md +11 -0
- package/docs/ts-web-extras.filesystemwritablefilestream_2.md +57 -0
- package/docs/ts-web-extras.filesystemwritablefilestream_2.seek.md +50 -0
- package/docs/ts-web-extras.filesystemwritablefilestream_2.truncate.md +50 -0
- package/docs/ts-web-extras.filesystemwritablefilestream_2.write.md +50 -0
- package/docs/ts-web-extras.filetreehelpers.defaultfileapitreeinitparams.md +13 -0
- package/docs/ts-web-extras.filetreehelpers.extractfilelistmetadata.md +56 -0
- package/docs/ts-web-extras.filetreehelpers.extractfilemetadata.md +56 -0
- package/docs/ts-web-extras.filetreehelpers.fromdirectoryupload.md +76 -0
- package/docs/ts-web-extras.filetreehelpers.fromfilelist.md +76 -0
- package/docs/ts-web-extras.filetreehelpers.getoriginalfile.md +72 -0
- package/docs/ts-web-extras.filetreehelpers.md +102 -0
- package/docs/ts-web-extras.idirectoryhandletreeinitializer.dirhandles.md +11 -0
- package/docs/ts-web-extras.idirectoryhandletreeinitializer.md +100 -0
- package/docs/ts-web-extras.idirectoryhandletreeinitializer.nonrecursive.md +11 -0
- package/docs/ts-web-extras.idirectoryhandletreeinitializer.prefix.md +11 -0
- package/docs/ts-web-extras.ifilehandletreeinitializer.filehandles.md +11 -0
- package/docs/ts-web-extras.ifilehandletreeinitializer.md +79 -0
- package/docs/ts-web-extras.ifilehandletreeinitializer.prefix.md +11 -0
- package/docs/ts-web-extras.ifilelisttreeinitializer.filelist.md +11 -0
- package/docs/ts-web-extras.ifilelisttreeinitializer.md +58 -0
- package/docs/ts-web-extras.ifilemetadata.lastmodified.md +11 -0
- package/docs/ts-web-extras.ifilemetadata.md +124 -0
- package/docs/ts-web-extras.ifilemetadata.name.md +11 -0
- package/docs/ts-web-extras.ifilemetadata.path.md +11 -0
- package/docs/ts-web-extras.ifilemetadata.size.md +11 -0
- package/docs/ts-web-extras.ifilemetadata.type.md +11 -0
- package/docs/ts-web-extras.ifsaccessapis.md +56 -0
- package/docs/ts-web-extras.ifsaccessapis.showdirectorypicker.md +52 -0
- package/docs/ts-web-extras.ifsaccessapis.showopenfilepicker.md +52 -0
- package/docs/ts-web-extras.ifsaccessapis.showsavefilepicker.md +52 -0
- package/docs/ts-web-extras.isdirectoryhandle.md +56 -0
- package/docs/ts-web-extras.isfilehandle.md +56 -0
- package/docs/ts-web-extras.isfilepath.md +52 -0
- package/docs/ts-web-extras.iurlconfigoptions.config.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.configstartdir.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.contextfilter.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.input.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.inputstartdir.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.interactive.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.loadzip.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.maxdistance.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.md +286 -0
- package/docs/ts-web-extras.iurlconfigoptions.qualifierdefaults.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.reducequalifiers.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.resourcetypes.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.zipfile.md +13 -0
- package/docs/ts-web-extras.iurlconfigoptions.zippath.md +13 -0
- package/docs/ts-web-extras.md +512 -0
- package/docs/ts-web-extras.parsecontextfilter.md +52 -0
- package/docs/ts-web-extras.parsequalifierdefaults.md +52 -0
- package/docs/ts-web-extras.parseresourcetypes.md +52 -0
- package/docs/ts-web-extras.parseurlparameters.md +17 -0
- package/docs/ts-web-extras.safeshowdirectorypicker.md +72 -0
- package/docs/ts-web-extras.safeshowopenfilepicker.md +72 -0
- package/docs/ts-web-extras.safeshowsavefilepicker.md +72 -0
- package/docs/ts-web-extras.showdirectorypickeroptions.id.md +11 -0
- package/docs/ts-web-extras.showdirectorypickeroptions.md +96 -0
- package/docs/ts-web-extras.showdirectorypickeroptions.mode.md +11 -0
- package/docs/ts-web-extras.showdirectorypickeroptions.startin.md +11 -0
- package/docs/ts-web-extras.showopenfilepickeroptions.excludeacceptalloption.md +11 -0
- package/docs/ts-web-extras.showopenfilepickeroptions.id.md +11 -0
- package/docs/ts-web-extras.showopenfilepickeroptions.md +134 -0
- package/docs/ts-web-extras.showopenfilepickeroptions.multiple.md +11 -0
- package/docs/ts-web-extras.showopenfilepickeroptions.startin.md +11 -0
- package/docs/ts-web-extras.showopenfilepickeroptions.types.md +11 -0
- package/docs/ts-web-extras.showsavefilepickeroptions.excludeacceptalloption.md +11 -0
- package/docs/ts-web-extras.showsavefilepickeroptions.id.md +11 -0
- package/docs/ts-web-extras.showsavefilepickeroptions.md +134 -0
- package/docs/ts-web-extras.showsavefilepickeroptions.startin.md +11 -0
- package/docs/ts-web-extras.showsavefilepickeroptions.suggestedname.md +11 -0
- package/docs/ts-web-extras.showsavefilepickeroptions.types.md +11 -0
- package/docs/ts-web-extras.supportsfilesystemaccess.md +56 -0
- package/docs/ts-web-extras.treeinitializer.md +15 -0
- package/docs/ts-web-extras.wellknowndirectory.md +13 -0
- package/docs/ts-web-extras.windowwithfsaccess.md +15 -0
- package/etc/ts-web-extras.api.md +310 -0
- package/lib/index.d.ts +16 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +58 -0
- package/lib/index.js.map +1 -0
- package/lib/packlets/crypto/browserHashProvider.d.ts +24 -0
- package/lib/packlets/crypto/browserHashProvider.d.ts.map +1 -0
- package/lib/packlets/crypto/browserHashProvider.js +70 -0
- package/lib/packlets/crypto/browserHashProvider.js.map +1 -0
- package/lib/packlets/crypto/index.d.ts +6 -0
- package/lib/packlets/crypto/index.d.ts.map +1 -0
- package/lib/packlets/crypto/index.js +43 -0
- package/lib/packlets/crypto/index.js.map +1 -0
- package/lib/packlets/file-api-types/index.d.ts +205 -0
- package/lib/packlets/file-api-types/index.d.ts.map +1 -0
- package/lib/packlets/file-api-types/index.js +166 -0
- package/lib/packlets/file-api-types/index.js.map +1 -0
- package/lib/packlets/file-tree/fileApiTreeAccessors.d.ts +129 -0
- package/lib/packlets/file-tree/fileApiTreeAccessors.d.ts.map +1 -0
- package/lib/packlets/file-tree/fileApiTreeAccessors.js +334 -0
- package/lib/packlets/file-tree/fileApiTreeAccessors.js.map +1 -0
- package/lib/packlets/file-tree/index.d.ts +6 -0
- package/lib/packlets/file-tree/index.d.ts.map +1 -0
- package/lib/packlets/file-tree/index.js +43 -0
- package/lib/packlets/file-tree/index.js.map +1 -0
- package/lib/packlets/helpers/fileTreeHelpers.d.ts +60 -0
- package/lib/packlets/helpers/fileTreeHelpers.d.ts.map +1 -0
- package/lib/packlets/helpers/fileTreeHelpers.js +102 -0
- package/lib/packlets/helpers/fileTreeHelpers.js.map +1 -0
- package/lib/packlets/helpers/index.d.ts +6 -0
- package/lib/packlets/helpers/index.d.ts.map +1 -0
- package/lib/packlets/helpers/index.js +63 -0
- package/lib/packlets/helpers/index.js.map +1 -0
- package/lib/packlets/url-utils/index.d.ts +6 -0
- package/lib/packlets/url-utils/index.d.ts.map +1 -0
- package/lib/packlets/url-utils/index.js +43 -0
- package/lib/packlets/url-utils/index.js.map +1 -0
- package/lib/packlets/url-utils/urlParams.d.ts +94 -0
- package/lib/packlets/url-utils/urlParams.d.ts.map +1 -0
- package/lib/packlets/url-utils/urlParams.js +165 -0
- package/lib/packlets/url-utils/urlParams.js.map +1 -0
- package/lib/test/setupTests.d.ts +2 -0
- package/lib/test/setupTests.d.ts.map +1 -0
- package/lib/test/setupTests.js +76 -0
- package/lib/test/setupTests.js.map +1 -0
- package/lib/test/unit/browserHashProvider.test.d.ts +2 -0
- package/lib/test/unit/browserHashProvider.test.d.ts.map +1 -0
- package/lib/test/unit/browserHashProvider.test.js +142 -0
- package/lib/test/unit/browserHashProvider.test.js.map +1 -0
- package/lib/test/unit/fileApiTreeAccessors.test.d.ts +2 -0
- package/lib/test/unit/fileApiTreeAccessors.test.d.ts.map +1 -0
- package/lib/test/unit/fileApiTreeAccessors.test.js +1139 -0
- package/lib/test/unit/fileApiTreeAccessors.test.js.map +1 -0
- package/lib/test/unit/fileApiTypes.test.d.ts +2 -0
- package/lib/test/unit/fileApiTypes.test.d.ts.map +1 -0
- package/lib/test/unit/fileApiTypes.test.js +444 -0
- package/lib/test/unit/fileApiTypes.test.js.map +1 -0
- package/lib/test/unit/fileTreeHelpers.test.d.ts +2 -0
- package/lib/test/unit/fileTreeHelpers.test.d.ts.map +1 -0
- package/lib/test/unit/fileTreeHelpers.test.js +592 -0
- package/lib/test/unit/fileTreeHelpers.test.js.map +1 -0
- package/lib/test/unit/urlParams.test.d.ts +2 -0
- package/lib/test/unit/urlParams.test.d.ts.map +1 -0
- package/lib/test/unit/urlParams.test.js +395 -0
- package/lib/test/unit/urlParams.test.js.map +1 -0
- package/lib/test/utils/testHelpers.d.ts +51 -0
- package/lib/test/utils/testHelpers.d.ts.map +1 -0
- package/lib/test/utils/testHelpers.js +133 -0
- package/lib/test/utils/testHelpers.js.map +1 -0
- package/package.json +68 -0
- package/rush-logs/ts-web-extras.build.cache.log +3 -0
- package/rush-logs/ts-web-extras.build.log +40 -0
- package/src/index.ts +47 -0
- package/src/packlets/crypto/browserHashProvider.ts +73 -0
- package/src/packlets/crypto/index.ts +28 -0
- package/src/packlets/file-api-types/index.ts +345 -0
- package/src/packlets/file-tree/fileApiTreeAccessors.ts +420 -0
- package/src/packlets/file-tree/index.ts +28 -0
- package/src/packlets/helpers/fileTreeHelpers.ts +107 -0
- package/src/packlets/helpers/index.ts +28 -0
- package/src/packlets/url-utils/index.ts +28 -0
- package/src/packlets/url-utils/urlParams.ts +245 -0
- package/src/test/setupTests.ts +87 -0
- package/src/test/unit/browserHashProvider.test.ts +155 -0
- package/src/test/unit/browserHashProvider.test.ts.bak +376 -0
- package/src/test/unit/fileApiTreeAccessors.test.ts +1318 -0
- package/src/test/unit/fileApiTypes.test.ts +551 -0
- package/src/test/unit/fileTreeHelpers.test.ts +694 -0
- package/src/test/unit/urlParams.test.ts +464 -0
- package/src/test/utils/testHelpers.ts +155 -0
- package/temp/build/typescript/ts_l9Fw4VUO.json +1 -0
- package/temp/coverage/base.css +224 -0
- package/temp/coverage/block-navigation.js +87 -0
- package/temp/coverage/crypto/browserHashProvider.ts.html +304 -0
- package/temp/coverage/crypto/index.html +116 -0
- package/temp/coverage/favicon.png +0 -0
- package/temp/coverage/file-tree/fileApiTreeAccessors.ts.html +1345 -0
- package/temp/coverage/file-tree/index.html +116 -0
- package/temp/coverage/helpers/fileTreeHelpers.ts.html +406 -0
- package/temp/coverage/helpers/index.html +116 -0
- package/temp/coverage/index.html +161 -0
- package/temp/coverage/lcov-report/base.css +224 -0
- package/temp/coverage/lcov-report/block-navigation.js +87 -0
- package/temp/coverage/lcov-report/crypto/browserHashProvider.ts.html +304 -0
- package/temp/coverage/lcov-report/crypto/index.html +116 -0
- package/temp/coverage/lcov-report/favicon.png +0 -0
- package/temp/coverage/lcov-report/file-tree/fileApiTreeAccessors.ts.html +1345 -0
- package/temp/coverage/lcov-report/file-tree/index.html +116 -0
- package/temp/coverage/lcov-report/helpers/fileTreeHelpers.ts.html +406 -0
- package/temp/coverage/lcov-report/helpers/index.html +116 -0
- package/temp/coverage/lcov-report/index.html +161 -0
- package/temp/coverage/lcov-report/prettify.css +1 -0
- package/temp/coverage/lcov-report/prettify.js +2 -0
- package/temp/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/temp/coverage/lcov-report/sorter.js +210 -0
- package/temp/coverage/lcov-report/url-utils/index.html +116 -0
- package/temp/coverage/lcov-report/url-utils/urlParams.ts.html +820 -0
- package/temp/coverage/lcov.info +1096 -0
- package/temp/coverage/prettify.css +1 -0
- package/temp/coverage/prettify.js +2 -0
- package/temp/coverage/sort-arrow-sprite.png +0 -0
- package/temp/coverage/sorter.js +210 -0
- package/temp/coverage/url-utils/index.html +116 -0
- package/temp/coverage/url-utils/urlParams.ts.html +820 -0
- package/temp/test/jest/haste-map-7492f1b44480e0cdd1f220078fb3afd8-c8dd6c3430605adeb2f1cadf4f75e791-8c9336785555d572065b28c111982ba4 +0 -0
- package/temp/test/jest/jest-transform-cache-7492f1b44480e0cdd1f220078fb3afd8-79ef2876fae7ca75eedb2aa53dc48338/63/package_63a8257b0e4d0e7ff33f927d75f27a75 +53 -0
- package/temp/test/jest/perf-cache-7492f1b44480e0cdd1f220078fb3afd8-da39a3ee5e6b4b0d3255bfef95601890 +1 -0
- package/temp/ts-web-extras.api.json +5040 -0
- package/temp/ts-web-extras.api.md +310 -0
- package/tsconfig.json +7 -0
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
## API Report File for "@fgv/ts-web-extras"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import { FileTree } from '@fgv/ts-json-base';
|
|
8
|
+
import { Result } from '@fgv/ts-utils';
|
|
9
|
+
|
|
10
|
+
// @public
|
|
11
|
+
export class BrowserHashProvider {
|
|
12
|
+
static hashParts(parts: string[], algorithm?: string, separator?: string): Promise<Result<string>>;
|
|
13
|
+
static hashString(data: string, algorithm?: string): Promise<Result<string>>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// @public
|
|
17
|
+
const defaultFileApiTreeInitParams: FileTree.IFileTreeInitParams<string>;
|
|
18
|
+
|
|
19
|
+
// @public
|
|
20
|
+
export function exportAsJson(data: unknown, filename: string): void;
|
|
21
|
+
|
|
22
|
+
// @public
|
|
23
|
+
export function exportUsingFileSystemAPI(data: unknown, suggestedName: string, description?: string, window?: Window): Promise<boolean>;
|
|
24
|
+
|
|
25
|
+
// @public
|
|
26
|
+
export function extractDirectoryPath(path: string): string;
|
|
27
|
+
|
|
28
|
+
// @public
|
|
29
|
+
function extractFileListMetadata(fileList: FileList): Array<IFileMetadata>;
|
|
30
|
+
|
|
31
|
+
// @public
|
|
32
|
+
function extractFileMetadata(file: File): IFileMetadata;
|
|
33
|
+
|
|
34
|
+
// @public
|
|
35
|
+
export class FileApiTreeAccessors<TCT extends string = string> {
|
|
36
|
+
static create<TCT extends string = string>(initializers: TreeInitializer[], params?: FileTree.IFileTreeInitParams<TCT>): Promise<Result<FileTree.FileTree<TCT>>>;
|
|
37
|
+
static extractFileMetadata(file: File): IFileMetadata;
|
|
38
|
+
static fromDirectoryUpload<TCT extends string = string>(fileList: FileList, params?: FileTree.IFileTreeInitParams<TCT>): Promise<Result<FileTree.FileTree<TCT>>>;
|
|
39
|
+
static fromFileList<TCT extends string = string>(fileList: FileList, params?: FileTree.IFileTreeInitParams<TCT>): Promise<Result<FileTree.FileTree<TCT>>>;
|
|
40
|
+
static getOriginalFile(fileList: FileList, targetPath: string): Result<File>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// @public
|
|
44
|
+
export interface FilePickerAcceptType {
|
|
45
|
+
// (undocumented)
|
|
46
|
+
accept: Record<string, string | string[]>;
|
|
47
|
+
// (undocumented)
|
|
48
|
+
description?: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// @public
|
|
52
|
+
interface FileSystemCreateWritableOptions_2 {
|
|
53
|
+
// (undocumented)
|
|
54
|
+
keepExistingData?: boolean;
|
|
55
|
+
}
|
|
56
|
+
export { FileSystemCreateWritableOptions_2 as FileSystemCreateWritableOptions }
|
|
57
|
+
|
|
58
|
+
// @public
|
|
59
|
+
interface FileSystemDirectoryHandle_2 extends FileSystemHandle_2 {
|
|
60
|
+
// (undocumented)
|
|
61
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle_2]>;
|
|
62
|
+
// (undocumented)
|
|
63
|
+
entries(): AsyncIterableIterator<[string, FileSystemHandle_2]>;
|
|
64
|
+
// (undocumented)
|
|
65
|
+
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions_2): Promise<FileSystemDirectoryHandle_2>;
|
|
66
|
+
// (undocumented)
|
|
67
|
+
getFileHandle(name: string, options?: FileSystemGetFileOptions_2): Promise<FileSystemFileHandle_2>;
|
|
68
|
+
// (undocumented)
|
|
69
|
+
keys(): AsyncIterableIterator<string>;
|
|
70
|
+
// (undocumented)
|
|
71
|
+
readonly kind: 'directory';
|
|
72
|
+
// (undocumented)
|
|
73
|
+
removeEntry(name: string, options?: FileSystemRemoveOptions_2): Promise<void>;
|
|
74
|
+
// (undocumented)
|
|
75
|
+
resolve(possibleDescendant: FileSystemHandle_2): Promise<string[] | null>;
|
|
76
|
+
// (undocumented)
|
|
77
|
+
values(): AsyncIterableIterator<FileSystemHandle_2>;
|
|
78
|
+
}
|
|
79
|
+
export { FileSystemDirectoryHandle_2 as FileSystemDirectoryHandle }
|
|
80
|
+
|
|
81
|
+
// @public
|
|
82
|
+
interface FileSystemFileHandle_2 extends FileSystemHandle_2 {
|
|
83
|
+
// (undocumented)
|
|
84
|
+
createWritable(options?: FileSystemCreateWritableOptions_2): Promise<FileSystemWritableFileStream_2>;
|
|
85
|
+
// (undocumented)
|
|
86
|
+
getFile(): Promise<File>;
|
|
87
|
+
// (undocumented)
|
|
88
|
+
readonly kind: 'file';
|
|
89
|
+
}
|
|
90
|
+
export { FileSystemFileHandle_2 as FileSystemFileHandle }
|
|
91
|
+
|
|
92
|
+
// @public
|
|
93
|
+
interface FileSystemGetDirectoryOptions_2 {
|
|
94
|
+
// (undocumented)
|
|
95
|
+
create?: boolean;
|
|
96
|
+
}
|
|
97
|
+
export { FileSystemGetDirectoryOptions_2 as FileSystemGetDirectoryOptions }
|
|
98
|
+
|
|
99
|
+
// @public
|
|
100
|
+
interface FileSystemGetFileOptions_2 {
|
|
101
|
+
// (undocumented)
|
|
102
|
+
create?: boolean;
|
|
103
|
+
}
|
|
104
|
+
export { FileSystemGetFileOptions_2 as FileSystemGetFileOptions }
|
|
105
|
+
|
|
106
|
+
// @public
|
|
107
|
+
interface FileSystemHandle_2 {
|
|
108
|
+
// (undocumented)
|
|
109
|
+
isSameEntry(other: FileSystemHandle_2): Promise<boolean>;
|
|
110
|
+
// (undocumented)
|
|
111
|
+
readonly kind: 'file' | 'directory';
|
|
112
|
+
// (undocumented)
|
|
113
|
+
readonly name: string;
|
|
114
|
+
// (undocumented)
|
|
115
|
+
queryPermission(descriptor?: FileSystemHandlePermissionDescriptor): Promise<PermissionState>;
|
|
116
|
+
// (undocumented)
|
|
117
|
+
requestPermission(descriptor?: FileSystemHandlePermissionDescriptor): Promise<PermissionState>;
|
|
118
|
+
}
|
|
119
|
+
export { FileSystemHandle_2 as FileSystemHandle }
|
|
120
|
+
|
|
121
|
+
// @public
|
|
122
|
+
export interface FileSystemHandlePermissionDescriptor {
|
|
123
|
+
// (undocumented)
|
|
124
|
+
mode?: 'read' | 'readwrite';
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// @public
|
|
128
|
+
interface FileSystemRemoveOptions_2 {
|
|
129
|
+
// (undocumented)
|
|
130
|
+
recursive?: boolean;
|
|
131
|
+
}
|
|
132
|
+
export { FileSystemRemoveOptions_2 as FileSystemRemoveOptions }
|
|
133
|
+
|
|
134
|
+
// @public
|
|
135
|
+
interface FileSystemWritableFileStream_2 extends WritableStream {
|
|
136
|
+
// (undocumented)
|
|
137
|
+
seek(position: number): Promise<void>;
|
|
138
|
+
// (undocumented)
|
|
139
|
+
truncate(size: number): Promise<void>;
|
|
140
|
+
// (undocumented)
|
|
141
|
+
write(data: BufferSource | Blob | string): Promise<void>;
|
|
142
|
+
}
|
|
143
|
+
export { FileSystemWritableFileStream_2 as FileSystemWritableFileStream }
|
|
144
|
+
|
|
145
|
+
declare namespace FileTreeHelpers {
|
|
146
|
+
export {
|
|
147
|
+
fromFileList,
|
|
148
|
+
fromDirectoryUpload,
|
|
149
|
+
getOriginalFile,
|
|
150
|
+
extractFileListMetadata,
|
|
151
|
+
extractFileMetadata,
|
|
152
|
+
defaultFileApiTreeInitParams
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// @public
|
|
157
|
+
function fromDirectoryUpload(fileList: FileList, params?: FileTree.IFileTreeInitParams<string>): Promise<Result<FileTree.FileTree<string>>>;
|
|
158
|
+
|
|
159
|
+
// @public
|
|
160
|
+
function fromFileList(fileList: FileList, params?: FileTree.IFileTreeInitParams<string>): Promise<Result<FileTree.FileTree<string>>>;
|
|
161
|
+
|
|
162
|
+
// @public
|
|
163
|
+
function getOriginalFile(fileList: FileList, path: string): Result<File>;
|
|
164
|
+
|
|
165
|
+
// @public
|
|
166
|
+
export interface IDirectoryHandleTreeInitializer {
|
|
167
|
+
// (undocumented)
|
|
168
|
+
readonly dirHandles: FileSystemDirectoryHandle_2[];
|
|
169
|
+
// (undocumented)
|
|
170
|
+
readonly nonRecursive?: boolean;
|
|
171
|
+
// (undocumented)
|
|
172
|
+
readonly prefix?: string;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// @public
|
|
176
|
+
export interface IFileHandleTreeInitializer {
|
|
177
|
+
// (undocumented)
|
|
178
|
+
readonly fileHandles: FileSystemFileHandle_2[];
|
|
179
|
+
// (undocumented)
|
|
180
|
+
readonly prefix?: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// @public
|
|
184
|
+
export interface IFileListTreeInitializer {
|
|
185
|
+
// (undocumented)
|
|
186
|
+
readonly fileList: FileList;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// @public
|
|
190
|
+
export interface IFileMetadata {
|
|
191
|
+
// (undocumented)
|
|
192
|
+
lastModified: number;
|
|
193
|
+
// (undocumented)
|
|
194
|
+
name: string;
|
|
195
|
+
// (undocumented)
|
|
196
|
+
path: string;
|
|
197
|
+
// (undocumented)
|
|
198
|
+
size: number;
|
|
199
|
+
// (undocumented)
|
|
200
|
+
type: string;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// @public
|
|
204
|
+
export interface IFsAccessApis {
|
|
205
|
+
// (undocumented)
|
|
206
|
+
showDirectoryPicker(options?: ShowDirectoryPickerOptions): Promise<FileSystemDirectoryHandle_2>;
|
|
207
|
+
// (undocumented)
|
|
208
|
+
showOpenFilePicker(options?: ShowOpenFilePickerOptions): Promise<FileSystemFileHandle_2[]>;
|
|
209
|
+
// (undocumented)
|
|
210
|
+
showSaveFilePicker(options?: ShowSaveFilePickerOptions): Promise<FileSystemFileHandle_2>;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// @public
|
|
214
|
+
export function isDirectoryHandle(handle: FileSystemHandle_2): handle is FileSystemDirectoryHandle_2;
|
|
215
|
+
|
|
216
|
+
// @public
|
|
217
|
+
export function isFileHandle(handle: FileSystemHandle_2): handle is FileSystemFileHandle_2;
|
|
218
|
+
|
|
219
|
+
// @public
|
|
220
|
+
export function isFilePath(path: string): boolean;
|
|
221
|
+
|
|
222
|
+
// @public
|
|
223
|
+
export interface IUrlConfigOptions {
|
|
224
|
+
config?: string;
|
|
225
|
+
configStartDir?: string;
|
|
226
|
+
contextFilter?: string;
|
|
227
|
+
input?: string;
|
|
228
|
+
inputStartDir?: string;
|
|
229
|
+
interactive?: boolean;
|
|
230
|
+
loadZip?: boolean;
|
|
231
|
+
maxDistance?: number;
|
|
232
|
+
qualifierDefaults?: string;
|
|
233
|
+
reduceQualifiers?: boolean;
|
|
234
|
+
resourceTypes?: string;
|
|
235
|
+
zipFile?: string;
|
|
236
|
+
zipPath?: string;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
// @public
|
|
240
|
+
export function parseContextFilter(contextFilter: string): Record<string, string>;
|
|
241
|
+
|
|
242
|
+
// @public
|
|
243
|
+
export function parseQualifierDefaults(qualifierDefaults: string): Record<string, string[]>;
|
|
244
|
+
|
|
245
|
+
// @public
|
|
246
|
+
export function parseResourceTypes(resourceTypes: string): string[];
|
|
247
|
+
|
|
248
|
+
// @public
|
|
249
|
+
export function parseUrlParameters(): IUrlConfigOptions;
|
|
250
|
+
|
|
251
|
+
// @public
|
|
252
|
+
export function safeShowDirectoryPicker(window: Window, options?: ShowDirectoryPickerOptions): Promise<FileSystemDirectoryHandle_2 | null>;
|
|
253
|
+
|
|
254
|
+
// @public
|
|
255
|
+
export function safeShowOpenFilePicker(window: Window, options?: ShowOpenFilePickerOptions): Promise<FileSystemFileHandle_2[] | null>;
|
|
256
|
+
|
|
257
|
+
// @public
|
|
258
|
+
export function safeShowSaveFilePicker(window: Window, options?: ShowSaveFilePickerOptions): Promise<FileSystemFileHandle_2 | null>;
|
|
259
|
+
|
|
260
|
+
// @public
|
|
261
|
+
export interface ShowDirectoryPickerOptions {
|
|
262
|
+
// (undocumented)
|
|
263
|
+
id?: string;
|
|
264
|
+
// (undocumented)
|
|
265
|
+
mode?: 'read' | 'readwrite';
|
|
266
|
+
// (undocumented)
|
|
267
|
+
startIn?: FileSystemHandle_2 | WellKnownDirectory;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
// @public
|
|
271
|
+
export interface ShowOpenFilePickerOptions {
|
|
272
|
+
// (undocumented)
|
|
273
|
+
excludeAcceptAllOption?: boolean;
|
|
274
|
+
// (undocumented)
|
|
275
|
+
id?: string;
|
|
276
|
+
// (undocumented)
|
|
277
|
+
multiple?: boolean;
|
|
278
|
+
// (undocumented)
|
|
279
|
+
startIn?: FileSystemHandle_2 | WellKnownDirectory;
|
|
280
|
+
// (undocumented)
|
|
281
|
+
types?: FilePickerAcceptType[];
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
// @public
|
|
285
|
+
export interface ShowSaveFilePickerOptions {
|
|
286
|
+
// (undocumented)
|
|
287
|
+
excludeAcceptAllOption?: boolean;
|
|
288
|
+
// (undocumented)
|
|
289
|
+
id?: string;
|
|
290
|
+
// (undocumented)
|
|
291
|
+
startIn?: FileSystemHandle_2 | WellKnownDirectory;
|
|
292
|
+
// (undocumented)
|
|
293
|
+
suggestedName?: string;
|
|
294
|
+
// (undocumented)
|
|
295
|
+
types?: FilePickerAcceptType[];
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// @public
|
|
299
|
+
export function supportsFileSystemAccess(window: Window): window is WindowWithFsAccess;
|
|
300
|
+
|
|
301
|
+
// @public
|
|
302
|
+
export type TreeInitializer = IFileListTreeInitializer | IFileHandleTreeInitializer | IDirectoryHandleTreeInitializer;
|
|
303
|
+
|
|
304
|
+
// @public
|
|
305
|
+
export type WellKnownDirectory = 'desktop' | 'documents' | 'downloads' | 'music' | 'pictures' | 'videos';
|
|
306
|
+
|
|
307
|
+
// @public
|
|
308
|
+
export type WindowWithFsAccess = Window & IFsAccessApis;
|
|
309
|
+
|
|
310
|
+
```
|