as-model 0.4.2 → 0.4.3
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.js +3 -0
- package/esm/store/index.js +3 -0
- package/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1306,6 +1306,9 @@ function createStore(modelLike) {
|
|
|
1306
1306
|
});
|
|
1307
1307
|
});
|
|
1308
1308
|
},
|
|
1309
|
+
getConfiguration: function getConfiguration() {
|
|
1310
|
+
return updater.config;
|
|
1311
|
+
},
|
|
1309
1312
|
update: function update(args) {
|
|
1310
1313
|
var updateArgs = args !== null && args !== void 0 ? args : {};
|
|
1311
1314
|
if (updateArgs.key) {
|
package/esm/store/index.js
CHANGED
|
@@ -117,6 +117,9 @@ function createStore(modelLike, config = {}) {
|
|
|
117
117
|
return __spreadProps(__spreadValues({}, u), { config: nextUpdaterConfig });
|
|
118
118
|
});
|
|
119
119
|
},
|
|
120
|
+
getConfiguration() {
|
|
121
|
+
return updater.config;
|
|
122
|
+
},
|
|
120
123
|
update(args) {
|
|
121
124
|
const updateArgs = args != null ? args : {};
|
|
122
125
|
if (updateArgs.key) {
|
package/index.d.ts
CHANGED
|
@@ -110,7 +110,8 @@ export declare interface Store<
|
|
|
110
110
|
state?: PickState<M>;
|
|
111
111
|
silence?: boolean;
|
|
112
112
|
}) => void;
|
|
113
|
-
config(customizedConfig: Config);
|
|
113
|
+
config: (customizedConfig: Config) => void;
|
|
114
|
+
getConfiguration: () => Config | undefined;
|
|
114
115
|
destroy: () => void;
|
|
115
116
|
payload: <P>(
|
|
116
117
|
callback?: (payload: P | undefined) => P | undefined
|