From 9a6622793232c3254df293e695d40fd54c66d6dd Mon Sep 17 00:00:00 2001 From: Jonathan Keam Date: Sat, 18 Jan 2020 21:43:08 -0500 Subject: [PATCH] fix(typescript): allow objects while creating actions (#94) * allow objects while creating actions * allow action creators as part of the createActions --- index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index 3fd8973..1f812ab 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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) | null; } export interface DefaultActionTypes { - [action: string]: string; + [action: string]: string | number | DefaultActionTypes | null; } export interface DefaultActionCreators {