@ngxs/store 3.8.2-dev.master-6ff0d85 → 3.8.2-dev.master-ba23aab
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/esm2022/src/internal/internals.mjs +1 -1
- package/esm2022/src/internal/state-context-factory.mjs +8 -5
- package/esm2022/src/operators/of-action.mjs +7 -5
- package/esm2022/src/store.mjs +2 -2
- package/esm2022/src/symbols.mjs +1 -1
- package/fesm2022/ngxs-store.mjs +14 -9
- package/fesm2022/ngxs-store.mjs.map +1 -1
- package/package.json +1 -1
- package/src/internal/internals.d.ts +1 -1
- package/src/operators/of-action.d.ts +1 -1
- package/src/store.d.ts +1 -1
- package/src/symbols.d.ts +2 -2
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ export type StateKeyGraph = ɵPlainObjectOf<string[]>;
|
|
|
6
6
|
export type StatesByName = ɵPlainObjectOf<ɵStateClassInternal>;
|
|
7
7
|
export interface StateOperations<T> {
|
|
8
8
|
getState(): T;
|
|
9
|
-
setState(val: T):
|
|
9
|
+
setState(val: T): void;
|
|
10
10
|
dispatch(actionOrActions: any | any[]): Observable<void>;
|
|
11
11
|
}
|
|
12
12
|
export interface MappedStore {
|
|
@@ -52,5 +52,5 @@ export declare function ofActionCompleted<T extends ActionType[]>(...allowedType
|
|
|
52
52
|
*
|
|
53
53
|
* This will ONLY grab actions that have just thrown an error
|
|
54
54
|
*/
|
|
55
|
-
export declare function ofActionErrored<T extends ActionType[]>(...allowedTypes: T): OperatorFunction<ActionContext<Constructed<T[TupleKeys<T>]>>, Constructed<T[TupleKeys<T>]
|
|
55
|
+
export declare function ofActionErrored<T extends ActionType[]>(...allowedTypes: T): OperatorFunction<ActionContext<Constructed<T[TupleKeys<T>]>>, ActionCompletion<Constructed<T[TupleKeys<T>]>>>;
|
|
56
56
|
export {};
|
package/src/store.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ export declare class Store {
|
|
|
59
59
|
* Reset the state to a specific point in time. This method is useful
|
|
60
60
|
* for plugin's who need to modify the state directly or unit testing.
|
|
61
61
|
*/
|
|
62
|
-
reset(state: any):
|
|
62
|
+
reset(state: any): void;
|
|
63
63
|
private getStoreBoundSelectorFn;
|
|
64
64
|
private initStateStream;
|
|
65
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<Store, [null, null, null, null, null, { optional: true; }]>;
|
package/src/symbols.d.ts
CHANGED
|
@@ -68,11 +68,11 @@ export interface StateContext<T> {
|
|
|
68
68
|
/**
|
|
69
69
|
* Reset the state to a new value.
|
|
70
70
|
*/
|
|
71
|
-
setState(val: T | StateOperator<T>):
|
|
71
|
+
setState(val: T | StateOperator<T>): void;
|
|
72
72
|
/**
|
|
73
73
|
* Patch the existing state with the provided value.
|
|
74
74
|
*/
|
|
75
|
-
patchState(val: Partial<T>):
|
|
75
|
+
patchState(val: Partial<T>): void;
|
|
76
76
|
/**
|
|
77
77
|
* Dispatch a new action and return the dispatched observable.
|
|
78
78
|
*/
|