@zenfs/core 0.0.6 → 0.0.7

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.
@@ -18,9 +18,10 @@ export interface BackendOption<T> {
18
18
  description: string;
19
19
  /**
20
20
  * A custom validation function to check if the option is valid.
21
- * Resolves if valid and rejects if not.
21
+ * When async, resolves if valid and rejects if not.
22
+ * When sync, it will throw an error if not valid.
22
23
  */
23
- validator?(opt: T): Promise<void>;
24
+ validator?(opt: T): void | Promise<void>;
24
25
  }
25
26
  /**
26
27
  * Describes all of the options available in a file system.