ac-storage 0.16.0 → 0.16.2

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { JSONTree, IJSONAccessor } from '@hve/json-accessor';
2
- export { IJSONAccessor, IJSONFS, JSONAccessor, JSONTree, JSONType, MemJSONAccessor } from '@hve/json-accessor';
1
+ import { JSONTree, ValidateJSONTree, IJSONAccessor } from '@hve/json-accessor';
2
+ export { IJSONAccessor, IJSONFS, JSONAccessor, JSONTree, JSONType, MemJSONAccessor, ValidateJSONTree } from '@hve/json-accessor';
3
3
  import { Leaf } from 'tree-navigate';
4
4
 
5
5
  interface IAccessorManager<AC = unknown> {
@@ -155,6 +155,7 @@ declare class StorageAccess {
155
155
  static Text(): Leaf<Accesses>;
156
156
  static Binary(): Leaf<Accesses>;
157
157
  static JSON(structure?: JSONTree): Leaf<Accesses>;
158
+ static JSON<Schema>(structure: ValidateJSONTree<Schema>): Leaf<Accesses>;
158
159
  static Custom(id: string, ...args: any[]): Leaf<Accesses>;
159
160
  static Union(...accesses: Leaf<Accesses>[]): Leaf<UnionAccess>;
160
161
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ac-storage",
3
- "version": "0.16.0",
3
+ "version": "0.16.2",
4
4
  "main": "./dist/bundle.cjs",
5
5
  "module": "./dist/bundle.mjs",
6
6
  "types": "./dist/index.d.ts",