@ngxs/store 3.8.2-dev.master-f7a49be → 3.8.2-dev.master-bcfc2b5

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,8 +1,12 @@
1
1
  {
2
2
  "name": "@ngxs/store",
3
- "version": "3.8.2-dev.master-f7a49be",
3
+ "version": "3.8.2-dev.master-bcfc2b5",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
+ "dependencies": {
7
+ "tslib": "^2.3.0",
8
+ "type-fest": "4.12.0"
9
+ },
6
10
  "peerDependencies": {
7
11
  "@angular/core": ">=12.0.0 <18.0.0",
8
12
  "rxjs": ">=6.5.5"
@@ -45,9 +49,6 @@
45
49
  "default": "./fesm2022/ngxs-store-internals-testing.mjs"
46
50
  }
47
51
  },
48
- "dependencies": {
49
- "tslib": "^2.3.0"
50
- },
51
52
  "repository": {
52
53
  "type": "git",
53
54
  "url": "git+https://github.com/ngxs/store.git"
@@ -1,11 +1,12 @@
1
1
  import { InjectionToken } from '@angular/core';
2
+ import type { ReadonlyDeep } from 'type-fest';
2
3
  import { Observable } from 'rxjs';
3
4
  import { ɵPlainObjectOf, ɵStateClassInternal, ɵActionHandlerMetaData } from '@ngxs/store/internals';
4
5
  import { NgxsConfig } from '../symbols';
5
6
  export type StateKeyGraph = ɵPlainObjectOf<string[]>;
6
7
  export type StatesByName = ɵPlainObjectOf<ɵStateClassInternal>;
7
8
  export interface StateOperations<T> {
8
- getState(): T;
9
+ getState(): ReadonlyDeep<T>;
9
10
  setState(val: T): T;
10
11
  dispatch(actionOrActions: any | any[]): Observable<void>;
11
12
  }
package/src/symbols.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { InjectionToken, Type } from '@angular/core';
2
+ import type { ReadonlyDeep } from 'type-fest';
2
3
  import { Observable } from 'rxjs';
3
4
  import { StateOperator } from '@ngxs/store/operators';
4
- import { ɵPlainObject, ɵSharedSelectorOptions, ɵStateClass } from '@ngxs/store/internals';
5
+ import { ɵStateClass, ɵPlainObject, ɵSharedSelectorOptions } from '@ngxs/store/internals';
5
6
  import { NgxsExecutionStrategy } from './execution/symbols';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare const ROOT_STATE_TOKEN: InjectionToken<ɵStateClass[]>;
@@ -64,7 +65,7 @@ export interface StateContext<T> {
64
65
  /**
65
66
  * Get the current state.
66
67
  */
67
- getState(): T;
68
+ getState(): ReadonlyDeep<T>;
68
69
  /**
69
70
  * Reset the state to a new value.
70
71
  */