From 9aa6fbc2fcfc3dc664fe8f490943477517d098c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lazar=20Ljubenovi=C4=87?= Date: Sat, 10 Nov 2018 11:01:24 +0100 Subject: [PATCH] Be more specific on action creators' return type --- index.d.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.d.ts b/index.d.ts index 1dc29644..cea706fc 100644 --- a/index.d.ts +++ b/index.d.ts @@ -40,13 +40,13 @@ declare module 'connected-react-router' { export type RouterAction = LocationChangeAction | CallHistoryMethodAction; - export function push(path: Path, state?: LocationState): RouterAction; - export function push(location: LocationDescriptorObject): RouterAction; - export function replace(path: Path, state?: LocationState): RouterAction; - export function replace(location: LocationDescriptorObject): RouterAction; - export function go(n: number): RouterAction; - export function goBack(): RouterAction; - export function goForward(): RouterAction; + export function push(path: Path, state?: LocationState): CallHistoryMethodAction; + export function push(location: LocationDescriptorObject): CallHistoryMethodAction; + export function replace(path: Path, state?: LocationState): CallHistoryMethodAction; + export function replace(location: LocationDescriptorObject): CallHistoryMethodAction; + export function go(n: number): CallHistoryMethodAction; + export function goBack(): CallHistoryMethodAction; + export function goForward(): CallHistoryMethodAction; export const routerActions: { push: typeof push;