Comparing version 1.0.0-1532856848957 to 1.0.0-1532860086530
@@ -89,3 +89,3 @@ import { EventEmitter } from 'betsy'; | ||
} | ||
export declare type ActionsCallback<Effects, State> = (action: TAction<State, Effects & { | ||
export declare type ActionsCallback<State, Effects> = (action: TAction<State, Effects & { | ||
state: State; | ||
@@ -104,3 +104,3 @@ }>) => any; | ||
[namespace: string]: ReactionsCallback<State, any>; | ||
}, Actions extends ActionsCallback<Effects, State> | { | ||
}, Actions extends ActionsCallback<State, Effects> | { | ||
[namespace: string]: ActionsCallback<{}, {}>; | ||
@@ -111,3 +111,3 @@ }> { | ||
devtools: Devtools; | ||
actions: Actions extends ActionsCallback<Effects, State> ? ReturnType<Actions> : Actions extends { | ||
actions: Actions extends ActionsCallback<State, Effects> ? ReturnType<Actions> : Actions extends { | ||
[namespace: string]: ActionsCallback<{}, {}>; | ||
@@ -114,0 +114,0 @@ } ? { |
@@ -13,4 +13,4 @@ import * as React from 'react'; | ||
export default class ReactApp<State extends object, Providers extends object, Reactions extends ReactionsCallback<State, any>, Actions extends { | ||
[namespace: string]: ActionsCallback<Providers, State>; | ||
} | ActionsCallback<Providers, State>> extends App<State, Providers, Reactions, Actions> { | ||
[namespace: string]: ActionsCallback<State, Providers>; | ||
} | ActionsCallback<State, Providers>> extends App<State, Providers, Reactions, Actions> { | ||
connect: <Props, ConnectedActions = Actions extends { | ||
@@ -17,0 +17,0 @@ [namespace: string]: ActionsCallback<Providers, State>; |
@@ -89,3 +89,3 @@ import { EventEmitter } from 'betsy'; | ||
} | ||
export declare type ActionsCallback<Effects, State> = (action: TAction<State, Effects & { | ||
export declare type ActionsCallback<State, Effects> = (action: TAction<State, Effects & { | ||
state: State; | ||
@@ -104,3 +104,3 @@ }>) => any; | ||
[namespace: string]: ReactionsCallback<State, any>; | ||
}, Actions extends ActionsCallback<Effects, State> | { | ||
}, Actions extends ActionsCallback<State, Effects> | { | ||
[namespace: string]: ActionsCallback<{}, {}>; | ||
@@ -111,3 +111,3 @@ }> { | ||
devtools: Devtools; | ||
actions: Actions extends ActionsCallback<Effects, State> ? ReturnType<Actions> : Actions extends { | ||
actions: Actions extends ActionsCallback<State, Effects> ? ReturnType<Actions> : Actions extends { | ||
[namespace: string]: ActionsCallback<{}, {}>; | ||
@@ -114,0 +114,0 @@ } ? { |
@@ -13,4 +13,4 @@ import * as React from 'react'; | ||
export default class ReactApp<State extends object, Providers extends object, Reactions extends ReactionsCallback<State, any>, Actions extends { | ||
[namespace: string]: ActionsCallback<Providers, State>; | ||
} | ActionsCallback<Providers, State>> extends App<State, Providers, Reactions, Actions> { | ||
[namespace: string]: ActionsCallback<State, Providers>; | ||
} | ActionsCallback<State, Providers>> extends App<State, Providers, Reactions, Actions> { | ||
connect: <Props, ConnectedActions = Actions extends { | ||
@@ -17,0 +17,0 @@ [namespace: string]: ActionsCallback<Providers, State>; |
{ | ||
"name": "overmind", | ||
"version": "1.0.0-1532856848957", | ||
"version": "1.0.0-1532860086530", | ||
"description": "Functional actions", | ||
@@ -41,6 +41,6 @@ "author": "Christian Alfoni <christianalfoni@gmail.com>", | ||
"@types/node": "^10.5.1", | ||
"action-chain": "1.0.0-1532856848957", | ||
"action-chain": "1.0.0-1532860086530", | ||
"is-plain-object": "^2.0.4", | ||
"betsy": "1.0.0-1532856848957", | ||
"proxy-state-tree": "1.0.0-1532856848957", | ||
"betsy": "1.0.0-1532860086530", | ||
"proxy-state-tree": "1.0.0-1532860086530", | ||
"tslib": "^1.9.3" | ||
@@ -47,0 +47,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
+ Addedaction-chain@1.0.0-1532860086530(transitive)
+ Addedbetsy@1.0.0-1532860086530(transitive)
+ Addedproxy-state-tree@1.0.0-1532860086530(transitive)
- Removedaction-chain@1.0.0-1532856848957(transitive)
- Removedbetsy@1.0.0-1532856848957(transitive)
- Removedproxy-state-tree@1.0.0-1532856848957(transitive)
Updatedbetsy@1.0.0-1532860086530