@types/redux-first-router
Advanced tools
Comparing version 1.10.4 to 2.1.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for redux-first-router 1.10 | ||
// Type definitions for redux-first-router 2.1 | ||
// Project: https://github.com/faceyspacey/redux-first-router#readme | ||
@@ -8,2 +8,3 @@ // Definitions by: Valbrand <https://github.com/Valbrand> | ||
// jscinoz <https://github.com/jscinoz> | ||
// surgeboris <https://github.com/surgeboris> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -68,4 +69,6 @@ // TypeScript Version: 2.4 | ||
export type HistoryEntries = Array<{ pathname: string }>; | ||
export interface HistoryData { | ||
entries: Array<{ pathname: string }>; | ||
entries: HistoryEntries; | ||
index: number; | ||
@@ -208,2 +211,4 @@ length: number; | ||
navigators?: NavigatorsConfig<TKeys, TState>; | ||
initialEntries?: HistoryEntries; | ||
createHistory?(): History; | ||
} | ||
@@ -233,5 +238,4 @@ | ||
export function connectRoutes<TKeys = {}, TState = any>( | ||
history: History, | ||
routesMap: RoutesMap<TKeys, TState>, | ||
options?: Options<TKeys, TState> | ||
options?: Options<TKeys, TState>, | ||
): { | ||
@@ -238,0 +242,0 @@ reducer: Reducer<LocationState<TKeys, TState>>; |
{ | ||
"name": "@types/redux-first-router", | ||
"version": "1.10.4", | ||
"version": "2.1.0", | ||
"description": "TypeScript definitions for redux-first-router", | ||
@@ -31,5 +31,11 @@ "license": "MIT", | ||
"githubUsername": "jscinoz" | ||
}, | ||
{ | ||
"name": "surgeboris", | ||
"url": "https://github.com/surgeboris", | ||
"githubUsername": "surgeboris" | ||
} | ||
], | ||
"main": "", | ||
"types": "", | ||
"repository": { | ||
@@ -44,4 +50,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "01eb479c04cf5e0dc255dafea1d0076b710fc7c2f2879f8312a5f9321f593c7c", | ||
"typesPublisherContentHash": "85231f6dc5592759585ce4ed3c405d5502b02f6e9dfcb6e15179729f3b292c15", | ||
"typeScriptVersion": "2.4" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 09 Jul 2018 20:32:27 GMT | ||
* Last updated: Wed, 31 Oct 2018 01:40:00 GMT | ||
* Dependencies: redux, history | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Valbrand <https://github.com/Valbrand>, viggyfresh <https://github.com/viggyfresh>, janb87 <https://github.com/janb87>, corydeppen <https://github.com/corydeppen>, jscinoz <https://github.com/jscinoz>. | ||
These definitions were written by Valbrand <https://github.com/Valbrand>, viggyfresh <https://github.com/viggyfresh>, janb87 <https://github.com/janb87>, corydeppen <https://github.com/corydeppen>, jscinoz <https://github.com/jscinoz>, surgeboris <https://github.com/surgeboris>. |
Sorry, the diff of this file is not supported yet
10637
221