as-model 0.1.10 → 0.1.11
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 +1 -3
- package/esm/store/enhance/signal.js +1 -3
- package/index.d.ts +1 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -858,9 +858,7 @@
|
|
|
858
858
|
signal.subscribe = function subscribe(dispatchCallback) {
|
|
859
859
|
return store.subscribe(dispatchCallback);
|
|
860
860
|
};
|
|
861
|
-
signal.
|
|
862
|
-
return store.payload(callback);
|
|
863
|
-
};
|
|
861
|
+
signal.store = store;
|
|
864
862
|
signalStore.enabled = true;
|
|
865
863
|
signalStore.started = true;
|
|
866
864
|
return signal;
|
|
@@ -61,9 +61,7 @@ function createSignal(store) {
|
|
|
61
61
|
signal.subscribe = function subscribe(dispatchCallback) {
|
|
62
62
|
return store.subscribe(dispatchCallback);
|
|
63
63
|
};
|
|
64
|
-
signal.
|
|
65
|
-
return store.payload(callback);
|
|
66
|
-
};
|
|
64
|
+
signal.store = store;
|
|
67
65
|
signalStore.enabled = true;
|
|
68
66
|
signalStore.started = true;
|
|
69
67
|
return signal;
|
package/index.d.ts
CHANGED
|
@@ -199,9 +199,7 @@ declare interface SignalStore<
|
|
|
199
199
|
startStatistics: () => void;
|
|
200
200
|
stopStatistics: () => void;
|
|
201
201
|
subscribe: (dispatcher: Dispatch) => () => void;
|
|
202
|
-
|
|
203
|
-
callback?: (payload: P | undefined) => P | undefined
|
|
204
|
-
) => P | undefined;
|
|
202
|
+
store: Store<S, T, R>;
|
|
205
203
|
};
|
|
206
204
|
}
|
|
207
205
|
|