@tramvai/types-actions-state-context 4.35.0 → 4.36.2
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/lib/actions.d.ts +2 -1
- package/package.json +1 -2
package/lib/actions.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export interface TramvaiActionContext<CurrentDeps> {
|
|
|
47
47
|
getState: GetState;
|
|
48
48
|
}
|
|
49
49
|
export interface TramvaiActionDefinition<Params extends any[], Result, Deps> {
|
|
50
|
-
name
|
|
50
|
+
name?: string;
|
|
51
51
|
fn: (this: TramvaiActionContext<Deps>, ...params: Params) => Result;
|
|
52
52
|
deps?: Deps;
|
|
53
53
|
conditions?: ActionConditionsParameters;
|
|
@@ -56,6 +56,7 @@ export interface TramvaiActionDefinition<Params extends any[], Result, Deps> {
|
|
|
56
56
|
}
|
|
57
57
|
export interface TramvaiAction<Params extends any[], Result, Deps> extends TramvaiActionDefinition<Params, Result, Deps> {
|
|
58
58
|
tramvaiActionVersion: number;
|
|
59
|
+
name: string;
|
|
59
60
|
}
|
|
60
61
|
export type UnknownAction<Result = any> = (...args: any[]) => Result;
|
|
61
62
|
export type AnyAction<Payload = any, Result = any, Deps = any> = Action<Payload, Result, Deps> | PlatformAction<Payload, Result> | UnknownAction;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/types-actions-state-context",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.36.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"watch": "tsc -w"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"node-abort-controller": "^3.0.1",
|
|
21
20
|
"tslib": "^2.4.0"
|
|
22
21
|
},
|
|
23
22
|
"peerDependencies": {
|