Skip to content

Commit

Permalink
adding generics to make sure the changes are backwards compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
salguerooo authored and supasate committed Feb 7, 2019
1 parent 6f6b6da commit fd45d61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Expand Up @@ -31,7 +31,7 @@ declare module 'connected-react-router' {
payload: RouterState;
}

export interface CallHistoryMethodAction<A> {
export interface CallHistoryMethodAction<A = any[]> {
type: typeof CALL_HISTORY_METHOD;
payload: LocationActionPayload<A>;
}
Expand Down Expand Up @@ -78,7 +78,7 @@ declare module 'connected-react-router' {
goForward: GoForward;
};

export interface LocationActionPayload<A> {
export interface LocationActionPayload<A = any[]> {
method: string;
args?: A;
}
Expand Down

0 comments on commit fd45d61

Please sign in to comment.