piral-containers 0.15.11 → 0.15.12-beta.5528
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/esm/types.d.ts +2 -2
- package/lib/types.d.ts +2 -2
- package/package.json +3 -3
package/esm/types.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export interface PiletContainersApi {
|
|
|
39
39
|
export interface StateContainerReducer<TState> {
|
|
40
40
|
(dispatch: StateDispatcher<TState>): void;
|
|
41
41
|
}
|
|
42
|
-
export
|
|
42
|
+
export type StateContainerReducers<TState> = {
|
|
43
43
|
[name: string]: (dispatch: StateContainerReducer<TState>, ...args: any) => void;
|
|
44
44
|
};
|
|
45
45
|
export interface StateContainerOptions<TState, TActions extends StateContainerReducers<TState>> {
|
|
@@ -62,7 +62,7 @@ export interface StateConnectorProps<TState, TAction> {
|
|
|
62
62
|
*/
|
|
63
63
|
actions: TAction;
|
|
64
64
|
}
|
|
65
|
-
export
|
|
65
|
+
export type StateContainerActions<TActions> = {
|
|
66
66
|
[P in keyof TActions]: (...args: RemainingArgs<TActions[P]>) => void;
|
|
67
67
|
};
|
|
68
68
|
export interface StateContainer<TState, TActions> {
|
package/lib/types.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export interface PiletContainersApi {
|
|
|
39
39
|
export interface StateContainerReducer<TState> {
|
|
40
40
|
(dispatch: StateDispatcher<TState>): void;
|
|
41
41
|
}
|
|
42
|
-
export
|
|
42
|
+
export type StateContainerReducers<TState> = {
|
|
43
43
|
[name: string]: (dispatch: StateContainerReducer<TState>, ...args: any) => void;
|
|
44
44
|
};
|
|
45
45
|
export interface StateContainerOptions<TState, TActions extends StateContainerReducers<TState>> {
|
|
@@ -62,7 +62,7 @@ export interface StateConnectorProps<TState, TAction> {
|
|
|
62
62
|
*/
|
|
63
63
|
actions: TAction;
|
|
64
64
|
}
|
|
65
|
-
export
|
|
65
|
+
export type StateContainerActions<TActions> = {
|
|
66
66
|
[P in keyof TActions]: (...args: RemainingArgs<TActions[P]>) => void;
|
|
67
67
|
};
|
|
68
68
|
export interface StateContainer<TState, TActions> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-containers",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.12-beta.5528",
|
|
4
4
|
"description": "Plugin for creating a pilet state container in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@types/react": "^18.0.0",
|
|
65
|
-
"piral-core": "
|
|
65
|
+
"piral-core": "0.15.12-beta.5528",
|
|
66
66
|
"react": "^18.0.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"piral-core": "0.14.x || 0.15.x",
|
|
70
70
|
"react": ">=16.8.0"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "6d97a2baca7ae3e5fb19a754ba55d44b40ed137e"
|
|
73
73
|
}
|