@ngxs/store 3.8.2-dev.master-6740f55 → 3.8.2-dev.master-a836c51
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/decorators/select/symbols.mjs +1 -1
- package/esm2022/src/decorators/selector/symbols.mjs +1 -1
- package/esm2022/src/execution/dispatch-outside-zone-ngxs-execution-strategy.mjs +1 -1
- package/esm2022/src/internal/state-stream.mjs +6 -1
- package/esm2022/src/operators/of-action.mjs +1 -1
- package/esm2022/src/selectors/create-pick-selector.mjs +1 -1
- package/esm2022/src/selectors/selector-types.util.mjs +1 -1
- package/esm2022/src/store.mjs +9 -2
- package/fesm2022/ngxs-store.mjs +13 -1
- package/fesm2022/ngxs-store.mjs.map +1 -1
- package/package.json +1 -1
- package/src/internal/state-stream.d.ts +2 -1
- package/src/store.d.ts +6 -1
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
1
|
+
import { OnDestroy, Signal } from '@angular/core';
|
|
2
2
|
import { PlainObject } from '@ngxs/store/internals';
|
|
3
3
|
import { OrderedBehaviorSubject } from './custom-rxjs-subjects';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -7,6 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
* @ignore
|
|
8
8
|
*/
|
|
9
9
|
export declare class StateStream extends OrderedBehaviorSubject<PlainObject> implements OnDestroy {
|
|
10
|
+
readonly state: Signal<PlainObject>;
|
|
10
11
|
constructor();
|
|
11
12
|
ngOnDestroy(): void;
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<StateStream, never>;
|
package/src/store.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
1
|
+
import { Signal, Type } from '@angular/core';
|
|
2
2
|
import { Observable, Subscription } from 'rxjs';
|
|
3
3
|
import { InternalNgxsExecutionStrategy } from './execution/internal-ngxs-execution-strategy';
|
|
4
4
|
import { InternalStateOperations } from './internal/state-operations';
|
|
@@ -6,6 +6,7 @@ import { StateStream } from './internal/state-stream';
|
|
|
6
6
|
import { NgxsConfig } from './symbols';
|
|
7
7
|
import { StateToken } from './state-token/state-token';
|
|
8
8
|
import { StateFactory } from './internal/state-factory';
|
|
9
|
+
import { TypedSelector } from './selectors';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class Store {
|
|
11
12
|
private _stateStream;
|
|
@@ -42,6 +43,10 @@ export declare class Store {
|
|
|
42
43
|
selectSnapshot<T>(selector: (state: any, ...states: any[]) => T): T;
|
|
43
44
|
selectSnapshot<T = any>(selector: string | Type<any>): T;
|
|
44
45
|
selectSnapshot<T>(selector: StateToken<T>): T;
|
|
46
|
+
/**
|
|
47
|
+
* Select a signal from the state.
|
|
48
|
+
*/
|
|
49
|
+
selectSignal<T>(selector: TypedSelector<T>): Signal<T>;
|
|
45
50
|
/**
|
|
46
51
|
* Allow the user to subscribe to the root of the state
|
|
47
52
|
*/
|