@ngxs/store 18.1.3 → 18.1.4-dev.master-e347595

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/index.d.ts CHANGED
@@ -394,6 +394,7 @@ declare function createSelector<S1 extends SelectorArg, S2 extends SelectorArg,
394
394
  declare function createSelector<S1 extends SelectorArg, S2 extends SelectorArg, S3 extends SelectorArg, S4 extends SelectorArg, S5 extends SelectorArg, S6 extends SelectorArg, S7 extends SelectorArg, S8 extends SelectorArg, TProjector extends (s1: ɵSelectorReturnType<S1>, s2: ɵSelectorReturnType<S2>, s3: ɵSelectorReturnType<S3>, s4: ɵSelectorReturnType<S4>, s5: ɵSelectorReturnType<S5>, s6: ɵSelectorReturnType<S6>, s7: ɵSelectorReturnType<S7>, s8: ɵSelectorReturnType<S8>) => any>(selectors: [S1, S2, S3, S4, S5, S6, S7, S8], projector: TProjector, creationMetadata?: Partial<CreationMetadata>): TProjector;
395
395
  declare function createSelector<T extends (...args: any[]) => any>(selectors: SelectorArg[] | undefined, projector: T, creationMetadata?: Partial<CreationMetadata>): T;
396
396
 
397
+ type ActionOrArrayOfActions<T> = T extends (infer U)[] ? NonNullable<U>[] : NonNullable<T>;
397
398
  declare class Store {
398
399
  private _stateStream;
399
400
  private _internalStateOperations;
@@ -408,9 +409,9 @@ declare class Store {
408
409
  private _selectableStateStream;
409
410
  constructor(_stateStream: _StateStream, _internalStateOperations: InternalStateOperations, _config: NgxsConfig, _internalExecutionStrategy: InternalNgxsExecutionStrategy, _stateFactory: StateFactory, initialStateValue: any);
410
411
  /**
411
- * Dispatches event(s).
412
+ * Dispatches action(s).
412
413
  */
413
- dispatch(actionOrActions: any | any[]): Observable<void>;
414
+ dispatch<T>(actionOrActions: ActionOrArrayOfActions<T>): Observable<void>;
414
415
  /**
415
416
  * Selects a slice of data from the store.
416
417
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngxs/store",
3
- "version": "18.1.3",
3
+ "version": "18.1.4-dev.master-e347595",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -32,18 +32,18 @@
32
32
  "esm": "./esm2022/internals/ngxs-store-internals.mjs",
33
33
  "default": "./fesm2022/ngxs-store-internals.mjs"
34
34
  },
35
- "./operators": {
36
- "types": "./operators/index.d.ts",
37
- "esm2022": "./esm2022/operators/ngxs-store-operators.mjs",
38
- "esm": "./esm2022/operators/ngxs-store-operators.mjs",
39
- "default": "./fesm2022/ngxs-store-operators.mjs"
40
- },
41
35
  "./plugins": {
42
36
  "types": "./plugins/index.d.ts",
43
37
  "esm2022": "./esm2022/plugins/ngxs-store-plugins.mjs",
44
38
  "esm": "./esm2022/plugins/ngxs-store-plugins.mjs",
45
39
  "default": "./fesm2022/ngxs-store-plugins.mjs"
46
40
  },
41
+ "./operators": {
42
+ "types": "./operators/index.d.ts",
43
+ "esm2022": "./esm2022/operators/ngxs-store-operators.mjs",
44
+ "esm": "./esm2022/operators/ngxs-store-operators.mjs",
45
+ "default": "./fesm2022/ngxs-store-operators.mjs"
46
+ },
47
47
  "./internals/testing": {
48
48
  "types": "./internals/testing/index.d.ts",
49
49
  "esm2022": "./esm2022/internals/testing/ngxs-store-internals-testing.mjs",
@@ -97,4 +97,4 @@
97
97
  "type": "opencollective",
98
98
  "url": "https://opencollective.com/ngxs"
99
99
  }
100
- }
100
+ }
@@ -1,3 +1,3 @@
1
1
  {
2
- "@ngxs/store": "18.1.3"
2
+ "@ngxs/store": "18.1.4"
3
3
  }
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/ngxs-store-experimental.mjs"
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/ngxs-store-internals.mjs"
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../../fesm2022/ngxs-store-internals-testing.mjs"
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/ngxs-store-operators.mjs"
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/ngxs-store-plugins.mjs"
3
- }