Skip to content

Commit

Permalink
Add getter Typescript type support
Browse files Browse the repository at this point in the history
Add getter types for:
getAction
getSearch
getHash
  • Loading branch information
antgonzales authored and supasate committed Jan 1, 2019
1 parent e42dab7 commit b7bc1ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.d.ts
Expand Up @@ -42,6 +42,10 @@ declare module 'connected-react-router' {
export function go(n: number): CallHistoryMethodAction;
export function goBack(): CallHistoryMethodAction;
export function goForward(): CallHistoryMethodAction;
export function getAction(state): RouterActionType;
export function getHash(state): string;
export function getLocation(state): Location;
export function getSearch(state): string;

export type Push = typeof push;
export type Replace = typeof replace;
Expand Down

0 comments on commit b7bc1ac

Please sign in to comment.