Skip to content

Commit a674a3e

Browse files
authored
export ActionHandler
- while testing we have methods using this method signature and it would be nice if we did not have define this. We were running into the issue as reported in microsoft/TypeScript#7960 So workaround was to do something like ``` const loginAction = userActions.login as ModuleAction<UserState>; ```
1 parent 091c14f commit a674a3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ export interface StoreOptions<S> {
8686
strict?: boolean;
8787
}
8888

89-
type ActionHandler<S, R> = (injectee: ActionContext<S, R>, payload: any) => any;
90-
interface ActionObject<S, R> {
89+
export type ActionHandler<S, R> = (injectee: ActionContext<S, R>, payload: any) => any;
90+
export interface ActionObject<S, R> {
9191
root?: boolean;
9292
handler: ActionHandler<S, R>;
9393
}

0 commit comments

Comments
 (0)