@zenfs/core 0.5.4 → 0.5.5
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/dist/ApiError.d.ts +5 -12
- package/dist/ApiError.js +6 -27
- package/dist/FileIndex.js +10 -10
- package/dist/backends/AsyncStore.js +24 -24
- package/dist/backends/Overlay.js +17 -17
- package/dist/backends/SyncStore.js +23 -23
- package/dist/backends/backend.d.ts +3 -3
- package/dist/browser.min.js +4 -4
- package/dist/browser.min.js.map +3 -3
- package/dist/emulation/promises.d.ts +2 -3
- package/dist/emulation/promises.js +15 -11
- package/dist/emulation/shared.d.ts +9 -1
- package/dist/emulation/shared.js +28 -40
- package/dist/emulation/sync.d.ts +3 -6
- package/dist/emulation/sync.js +17 -7
- package/dist/file.d.ts +4 -0
- package/dist/file.js +10 -14
- package/dist/stats.d.ts +2 -3
- package/dist/stats.js +6 -22
- package/dist/utils.js +6 -2
- package/package.json +1 -1
|
@@ -73,8 +73,8 @@ export declare function createBackend<B extends Backend>(backend: B, options?: o
|
|
|
73
73
|
*
|
|
74
74
|
* The option object for each file system corresponds to that file system's option object passed to its `Create()` method.
|
|
75
75
|
*/
|
|
76
|
-
export interface BackendConfig {
|
|
77
|
-
backend: Backend
|
|
76
|
+
export interface BackendConfig<FS extends FileSystem = FileSystem, OC extends BackendOptionsConfig = BackendOptionsConfig> {
|
|
77
|
+
backend: Backend<FS, OC>;
|
|
78
78
|
[key: string]: unknown;
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
@@ -85,5 +85,5 @@ export declare function isBackendConfig(arg: unknown): arg is BackendConfig;
|
|
|
85
85
|
* Retrieve a file system with the given configuration.
|
|
86
86
|
* @param config A BackendConfig object.
|
|
87
87
|
*/
|
|
88
|
-
export declare function resolveBackend(options: BackendConfig
|
|
88
|
+
export declare function resolveBackend<FS extends FileSystem>(options: BackendConfig<FS>, _depth?: number): Promise<FS>;
|
|
89
89
|
export {};
|