Skip to content

Commit

Permalink
fix(typescript): allow objects while creating actions (#94)
Browse files Browse the repository at this point in the history
* allow objects while creating actions

* allow action creators as part of the createActions
  • Loading branch information
jkeam authored Jan 19, 2020
1 parent a1c80b0 commit 9a66227
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
declare module 'reduxsauce' {
import { Action, AnyAction, Reducer } from 'redux';
import { Action, AnyAction, Reducer, ActionCreator } from 'redux';

export interface Actions {
[action: string]: string[] | null;
[action: string]: (string[] | DefaultActionTypes | ActionCreator<DefaultActionTypes>) | null;
}

export interface DefaultActionTypes {
[action: string]: string;
[action: string]: string | number | DefaultActionTypes | null;
}

export interface DefaultActionCreators {
Expand Down

0 comments on commit 9a66227

Please sign in to comment.