Skip to content

Commit

Permalink
Misc typing errors; resolves #200, #220, #222
Browse files Browse the repository at this point in the history
  • Loading branch information
nmay231 committed Dec 18, 2019
1 parent 0ad74e8 commit 323b321
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions typings.d.ts
Expand Up @@ -5,14 +5,14 @@ declare module 'redux-undo' {
past: State[];
present: State;
future: State[];
_latestUnfiltered: State;
group: any;
index: number;
limit: number;
_latestUnfiltered?: State;
group?: any;
index?: number;
limit?: number;
}

export type FilterFunction = <State>(action: Action, currentState: State, previousHistory: StateWithHistory<State>) => boolean;
export type GroupByFunction = <State>(action: Action, currentState: State, previousHistory: StateWithHistory<State>) => any;
export type GroupByFunction = (action: Action) => any;
export type CombineFilters = (...filters: FilterFunction[]) => FilterFunction;

export class ActionCreators {
Expand Down Expand Up @@ -57,7 +57,7 @@ declare module 'redux-undo' {
jumpToFutureType?: string;

/** Define custom action type for this clearHistory action */
clearHistoryType?: string;
clearHistoryType?: string | string[];

/** History will be (re)set upon init action type */
initTypes?: string[];
Expand Down

0 comments on commit 323b321

Please sign in to comment.