connected-react-router
Advanced tools
Comparing version 6.2.1 to 6.2.2
declare module 'connected-react-router' { | ||
import * as React from 'react'; | ||
import { Middleware, Reducer } from 'redux'; | ||
import { match } from 'react-router'; | ||
import { | ||
@@ -36,2 +37,10 @@ History, | ||
export interface RouterRootState { | ||
router: RouterState; | ||
} | ||
export type matchSelectorFn< | ||
S extends RouterRootState, Params extends { [K in keyof Params]?: string } | ||
> = (state: S) => match<Params> | null; | ||
export type RouterAction = LocationChangeAction | CallHistoryMethodAction; | ||
@@ -46,6 +55,10 @@ | ||
export function goForward(): CallHistoryMethodAction; | ||
export function getAction(state: LocationState): RouterActionType; | ||
export function getHash(state: LocationState): string; | ||
export function getLocation(state: LocationState): Location; | ||
export function getSearch(state: LocationState): string; | ||
export function getRouter<S extends RouterRootState>(state: S): RouterState; | ||
export function getAction<S extends RouterRootState>(state: S): RouterActionType; | ||
export function getHash<S extends RouterRootState>(state: S): string; | ||
export function getLocation<S extends RouterRootState>(state: S): Location; | ||
export function getSearch<S extends RouterRootState>(state: S): string; | ||
export function createMatchSelector< | ||
S extends RouterRootState, Params extends { [K in keyof Params]?: string } | ||
>(path: string): matchSelectorFn<S, Params>; | ||
@@ -52,0 +65,0 @@ export type Push = typeof push; |
{ | ||
"name": "connected-react-router", | ||
"version": "6.2.1", | ||
"version": "6.2.2", | ||
"description": "A Redux binding for React Router v4", | ||
@@ -48,2 +48,3 @@ "main": "lib/index.js", | ||
"@types/react": "*", | ||
"@types/react-router": "^4.4.3", | ||
"babel-core": "7.0.0-bridge.0", | ||
@@ -50,0 +51,0 @@ "babel-eslint": "^10.0.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
465591
8794
34