router-hook
Advanced tools
Comparing version 4.0.2 to 4.0.3
/// <reference types="react" /> | ||
export default function route(path: string): { | ||
match: (location: string, render?: import("react").FunctionComponent<{}>) => {}; | ||
toUrl: (params: object) => string; | ||
toUrl: (params?: object) => string; | ||
}; |
{ | ||
"name": "router-hook", | ||
"author": "Tim Field <tim@mohiohio.com>", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"main": "dist/index.js", | ||
@@ -29,3 +29,3 @@ "homepage": "https://github.com/tim-field/router-hook/#readme", | ||
"react-dom": "^16", | ||
"tslib": "^1.9.3", | ||
"tslib": "^1.11.1", | ||
"typescript": "^3", | ||
@@ -32,0 +32,0 @@ "yalc": "^1.0.0-pre.27" |
@@ -23,3 +23,3 @@ import pathToRegexp from "path-to-regexp" | ||
}, | ||
toUrl: (params: object) => { | ||
toUrl: (params?: object) => { | ||
const defined = params | ||
@@ -26,0 +26,0 @@ ? Object.entries(params).reduce((acc, [k, v]) => { |
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
15191