@ngxs/store 3.8.2-dev.master-322dc2c → 3.8.2-dev.master-296071a

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngxs/store",
3
- "version": "3.8.2-dev.master-322dc2c",
3
+ "version": "3.8.2-dev.master-296071a",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -101,7 +101,7 @@ const pluginData = new Map([
101
101
  [
102
102
  lib_config_1.LIBRARIES.WEBSOCKET,
103
103
  {
104
- module: 'NgxsWebsocketPluginModule',
104
+ module: 'NgxsWebSocketPluginModule',
105
105
  standalone: 'withNgxsWebSocketPlugin'
106
106
  }
107
107
  ]
@@ -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): T;
9
+ setState(val: T): void;
10
10
  dispatch(actionOrActions: any | any[]): Observable<void>;
11
11
  }
12
12
  export interface MappedStore {
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): 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>): 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>): T;
75
+ patchState(val: Partial<T>): void;
76
76
  /**
77
77
  * Dispatch a new action and return the dispatched observable.
78
78
  */