@voxgig/struct 0.3.5 → 0.3.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.
@@ -29,15 +29,9 @@ type Indexable = {
29
29
  [key: number]: any;
30
30
  };
31
31
  type InjectMode = number;
32
- type Injector = (inj: Injection, // Injection state.
33
- val: any, // Injection value specification.
34
- ref: string, // Original injection reference string.
32
+ type Injector = (inj: Injection, val: any, ref: string, // Original injection reference string.
35
33
  store: any) => any;
36
- type Modify = (val: any, // Value.
37
- key?: PropKey, // Value key, if any,
38
- parent?: any, // Parent node, if any.
39
- inj?: Injection, // Injection state, if any.
40
- store?: any) => void;
34
+ type Modify = (val: any, key?: PropKey, parent?: any, inj?: Injection, store?: any) => void;
41
35
  type WalkApply = (key: string | number | undefined, val: any, parent: any, path: string[]) => any;
42
36
  declare function typename(t: number): any;
43
37
  declare function getdef(val: any, alt: any): any;