From 731e143d8c53af72105e5939974c84a4711c5513 Mon Sep 17 00:00:00 2001 From: Dmytro Borysov Date: Wed, 2 Aug 2017 10:08:20 +0200 Subject: [PATCH 1/2] [react-router-redux] - switching action type from `string` to a specific string --- types/react-router-redux/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react-router-redux/index.d.ts b/types/react-router-redux/index.d.ts index 3af56972e3..22316f5edf 100644 --- a/types/react-router-redux/index.d.ts +++ b/types/react-router-redux/index.d.ts @@ -25,7 +25,7 @@ export interface ConnectedRouterProps { } export class ConnectedRouter extends React.Component> {} -export const LOCATION_CHANGE: string; +export const LOCATION_CHANGE: '@@router/LOCATION_CHANGE'; export interface RouterState { location: Location | null; @@ -33,7 +33,7 @@ export interface RouterState { export const routerReducer: Reducer; -export const CALL_HISTORY_METHOD: string; +export const CALL_HISTORY_METHOD: '@@router/CALL_HISTORY_METHOD'; export function push(location: LocationDescriptor, state?: LocationState): RouterAction; export function replace(location: LocationDescriptor, state?: LocationState): RouterAction; From b1abc81347ab91ae15924f8f2370abb9eb9eabcb Mon Sep 17 00:00:00 2001 From: Dmytro Borysov Date: Thu, 3 Aug 2017 20:54:42 +0200 Subject: [PATCH 2/2] [react-router-redux] - exposing value instead of type --- types/react-router-redux/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react-router-redux/index.d.ts b/types/react-router-redux/index.d.ts index 22316f5edf..86ba9f2116 100644 --- a/types/react-router-redux/index.d.ts +++ b/types/react-router-redux/index.d.ts @@ -25,7 +25,7 @@ export interface ConnectedRouterProps { } export class ConnectedRouter extends React.Component> {} -export const LOCATION_CHANGE: '@@router/LOCATION_CHANGE'; +export const LOCATION_CHANGE = '@@router/LOCATION_CHANGE'; export interface RouterState { location: Location | null; @@ -33,7 +33,7 @@ export interface RouterState { export const routerReducer: Reducer; -export const CALL_HISTORY_METHOD: '@@router/CALL_HISTORY_METHOD'; +export const CALL_HISTORY_METHOD = '@@router/CALL_HISTORY_METHOD'; export function push(location: LocationDescriptor, state?: LocationState): RouterAction; export function replace(location: LocationDescriptor, state?: LocationState): RouterAction;