@types/react-router
Advanced tools
Comparing version 2.0.38 to 2.0.39
// Type definitions for react-router v2.0.0 | ||
// Project: https://github.com/rackt/react-router | ||
// Definitions by: Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>, Alex Wendland <https://github.com/awendland> | ||
// Definitions by: Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>, Alex Wendland <https://github.com/awendland>, Kostya Esmukov <https://github.com/KostyaEsmukov> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
/// <reference types="history" /> | ||
export as namespace ReactRouter; | ||
@@ -7,0 +9,0 @@ |
import * as React from 'react'; | ||
import Router from './Router'; | ||
import RouterContext from './RouterContext'; | ||
export interface Middleware { | ||
renderRouterContext: (previous: React.Props<{}>[], props: React.Props<{}>) => React.Props<{}>[]; | ||
renderRouteComponent: (previous: React.Props<{}>[], props: React.Props<{}>) => React.Props<{}>[]; | ||
renderRouterContext?: (previous: RouterContext, props: React.Props<{}>) => RouterContext; | ||
renderRouteComponent?: (previous: Router.RouteComponent, props: React.Props<{}>) => Router.RouteComponent; | ||
} | ||
export default function applyRouterMiddleware(...middlewares: Middleware[]): (renderProps: React.Props<{}>) => React.Props<{}>[]; | ||
export default function applyRouterMiddleware(...middlewares: Middleware[]): (renderProps: React.Props<{}>) => RouterContext; |
import { History } from './History'; | ||
declare const browserHistory: History; | ||
export default browserHistory; |
import * as H from 'history'; | ||
export default function createMemoryHistory(options?: H.HistoryOptions): H.History; |
import { History } from './History'; | ||
declare const hashHistory: History; | ||
export default hashHistory; |
@@ -0,0 +0,0 @@ import Router from './Router'; |
@@ -0,0 +0,0 @@ import Link from './Link'; |
@@ -0,0 +0,0 @@ import Router from './Router'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as H from 'history'; |
export function formatPattern(pattern: string, params: {}): string; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
import * as React from 'react'; | ||
import RouterContext from './RouterContext'; | ||
import { | ||
@@ -51,12 +52,13 @@ QueryString, Query, | ||
interface RouterProps extends React.Props<Router> { | ||
history?: History; | ||
routes?: RouteConfig; // alias for children | ||
createElement?: (component: RouteComponent, props: Object) => any; | ||
onError?: (error: any) => any; | ||
onUpdate?: () => any; | ||
parseQueryString?: ParseQueryString; | ||
stringifyQuery?: StringifyQuery; | ||
interface RouterProps extends React.Props<Router> { | ||
history?: History; | ||
routes?: RouteConfig; // alias for children | ||
createElement?: (component: RouteComponent, props: Object) => any; | ||
onError?: (error: any) => any; | ||
onUpdate?: () => any; | ||
parseQueryString?: ParseQueryString; | ||
stringifyQuery?: StringifyQuery; | ||
basename?: string; | ||
} | ||
render?: (renderProps: React.Props<{}>) => RouterContext; | ||
} | ||
@@ -63,0 +65,0 @@ interface PlainRoute { |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import { History, HistoryOptions, HistoryQueries, CreateHistory } from 'history'; |
@@ -0,0 +0,0 @@ import * as H from 'history'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
{ | ||
"name": "@types/react-router", | ||
"version": "2.0.38", | ||
"version": "2.0.39", | ||
"description": "TypeScript definitions for react-router v2.0.0", | ||
"license": "MIT", | ||
"author": "Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>, Alex Wendland <https://github.com/awendland>", | ||
"author": "Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>, Alex Wendland <https://github.com/awendland>, Kostya Esmukov <https://github.com/KostyaEsmukov>", | ||
"main": "", | ||
@@ -13,6 +13,9 @@ "repository": { | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"@types/history": "*", | ||
"@types/react": "*" | ||
}, | ||
"peerDependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "35f1901c556408f2d36fa26ce4b58879f8fc5cdef778ba0b1b2d065ea763496e" | ||
"typesPublisherContentHash": "b8a3e469b66769544e77c04cb560b5ee975689bda16c2b88d2f6f427b2a9aa14" | ||
} |
@@ -11,5 +11,5 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 13 Oct 2016 19:38:22 GMT | ||
* Last updated: Mon, 14 Nov 2016 19:35:01 GMT | ||
* File structure: UMD | ||
* Library Dependencies: none | ||
* Library Dependencies: history | ||
* Module Dependencies: history, react | ||
@@ -19,2 +19,2 @@ * Global values: IndexLink, Lifecycle, Link, ReactRouter, RouteContext, Router, browserHistory, hashHistory, self, useRoutes, withRouter | ||
# Credits | ||
These definitions were written by Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>, Alex Wendland <https://github.com/awendland>. | ||
These definitions were written by Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>, Alex Wendland <https://github.com/awendland>, Kostya Esmukov <https://github.com/KostyaEsmukov>. |
{ | ||
"authors": "Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>, Alex Wendland <https://github.com/awendland>", | ||
"authors": "Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>, Alex Wendland <https://github.com/awendland>, Kostya Esmukov <https://github.com/KostyaEsmukov>", | ||
"definitionFilename": "index.d.ts", | ||
"libraryDependencies": [], | ||
"libraryDependencies": [ | ||
"history" | ||
], | ||
"moduleDependencies": [ | ||
@@ -9,4 +11,4 @@ "history", | ||
], | ||
"libraryMajorVersion": "2", | ||
"libraryMinorVersion": "0", | ||
"libraryMajorVersion": 2, | ||
"libraryMinorVersion": 0, | ||
"libraryName": "react-router v2.0.0", | ||
@@ -58,3 +60,3 @@ "typingsPackageName": "react-router", | ||
"hasPackageJson": false, | ||
"contentHash": "35f1901c556408f2d36fa26ce4b58879f8fc5cdef778ba0b1b2d065ea763496e" | ||
"contentHash": "b8a3e469b66769544e77c04cb560b5ee975689bda16c2b88d2f6f427b2a9aa14" | ||
} |
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
20377
434
2
+ Added@types/history@*
+ Added@types/react@*
+ Added@babel/runtime@7.25.9(transitive)
+ Added@types/history@5.0.0(transitive)
+ Added@types/prop-types@15.7.13(transitive)
+ Added@types/react@18.3.11(transitive)
+ Addedcsstype@3.1.3(transitive)
+ Addedhistory@5.3.0(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)