@webkrafters/react-observable-context 4.0.0-alpha.4 → 4.0.0-alpha.5s

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.
@@ -38,4 +38,4 @@ export function createContext<T extends import("../types").State>(): ObservableC
38
38
  * {myX: 'd.e.f[1].x'} or {myX: 'd.e.f.1.x'} => {myX: 7} // same applies to {myY: 'd.e.f[1].y'} = {myY: 8}; {myZ: 'd.e.f[1].z'} = {myZ: 9}
39
39
  * {myData: '@@STATE'} => {myData: state}
40
40
  */
41
- export function useContext<T extends Stat>(context: ObservableContext<T>, selectorMap?: {
42
41
  [selectorKey: string]: string | keyof T;
43
42
  Provider: ObservableProvider<S>;
44
43
  children?: ReactNode;
45
44
  prehooks?: Prehooks<T>;
46
45
  storage?: IStorage<T>;
47
46
  value: PartialState<T>;
48
47
  data?: import("../types").Data;
49
48
  resetState?: (propertyPaths?: string[]) => void;
50
49
  setState?: (changes: import("../types").PartialState<T>) => void;
51
50
  [x: string]: any;
52
51
  [x: string]: any;
52
+ export function useContext<T extends import("../types").State>(context: ObservableContext<T>, selectorMap?: {
53
53
  [selectorKey: string]: string | keyof T;
54
54
  Provider: ObservableProvider<S>;
55
55
  children?: ReactNode;
56
56
  prehooks?: Prehooks<T>;
57
57
  storage?: IStorage<T>;
58
58
  value: PartialState<T>;
59
59
  data?: import("../types").Data;
60
60
  resetState?: (propertyPaths?: string[]) => void;
61
61
  setState?: (changes: import("../types").PartialState<T>) => void;
62
62
  [x: string]: any;
63
63
  [x: string]: any;
package/package.json CHANGED
@@ -111,5 +111,5 @@
111
111
  "test:watch": "eslint --fix && jest --updateSnapshot --watchAll"
112
112
  },
113
113
  "types": "dist/main/index.d.ts",
114
- "version": "4.0.0-alpha.4"
114
+ "version": "4.0.0-alpha.5s"
115
115
  }