@zenfs/core 0.5.5 → 0.5.6

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.
@@ -122,5 +122,5 @@ export declare class AsyncMirrorFS extends AsyncMirrorFS_base {
122
122
  */
123
123
  private enqueue;
124
124
  }
125
- export declare const AsyncMirror: Backend;
125
+ export declare const AsyncMirror: Backend<AsyncMirrorFS>;
126
126
  export {};
@@ -230,6 +230,7 @@ export const AsyncMirror = {
230
230
  options: {
231
231
  sync: {
232
232
  type: 'object',
233
+ required: true,
233
234
  description: 'The synchronous file system to mirror the asynchronous file system to.',
234
235
  validator: async (backend) => {
235
236
  if ('metadata' in backend && !backend.metadata().synchronous) {
@@ -239,6 +240,7 @@ export const AsyncMirror = {
239
240
  },
240
241
  async: {
241
242
  type: 'object',
243
+ required: true,
242
244
  description: 'The asynchronous file system to mirror.',
243
245
  },
244
246
  },
@@ -1,6 +1,6 @@
1
1
  import type { Ino } from '../inode.js';
2
2
  import type { Backend } from './backend.js';
3
- import { SyncStore, SimpleSyncStore, SyncTransaction } from './SyncStore.js';
3
+ import { SyncStore, SimpleSyncStore, SyncTransaction, SyncStoreFS } from './SyncStore.js';
4
4
  /**
5
5
  * A simple in-memory store
6
6
  */
@@ -18,4 +18,4 @@ export declare class InMemoryStore implements SyncStore, SimpleSyncStore {
18
18
  * A simple in-memory file system backed by an InMemoryStore.
19
19
  * Files are not persisted across page loads.
20
20
  */
21
- export declare const InMemory: Backend;
21
+ export declare const InMemory: Backend<SyncStoreFS>;
@@ -39,6 +39,7 @@ export const InMemory = {
39
39
  options: {
40
40
  name: {
41
41
  type: 'string',
42
+ required: false,
42
43
  description: 'The name of the store',
43
44
  },
44
45
  },
@@ -119,4 +119,4 @@ export declare class OverlayFS extends LockedFS<UnlockedOverlayFS> {
119
119
  resDeletionLog(): string;
120
120
  unwrap(): UnlockedOverlayFS;
121
121
  }
122
- export declare const Overlay: Backend;
122
+ export declare const Overlay: Backend<OverlayFS>;
@@ -11,7 +11,7 @@ export interface OptionConfig<T> {
11
11
  /**
12
12
  * Whether or not the option is required (optional can be set to null or undefined). Defaults to false.
13
13
  */
14
- required?: boolean;
14
+ required: boolean;
15
15
  /**
16
16
  * Description of the option. Used in error messages and documentation.
17
17
  */