Skip to content

Commit 57f3cb2

Browse files
sksktsn
authored andcommitted
export ActionHandler (#1201)
- 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 c5330d9 commit 57f3cb2

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)