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