router-hook
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -5,5 +5,5 @@ import { ReactNode } from "react"; | ||
match(location: string, render?: (p: P) => ReactNode): ReactNode | P | undefined; | ||
toUrl(params?: Record<string, unknown>): string; | ||
toUrl(params?: P): string; | ||
} | ||
export default function route<P = Record<string, string>>(path: string): Route<P>; | ||
export {}; |
{ | ||
"name": "router-hook", | ||
"author": "Tim Field <tim@mohiohio.com>", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"main": "dist/index.js", | ||
@@ -28,4 +28,4 @@ "homepage": "https://github.com/tim-field/router-hook/#readme", | ||
"prettier": "1.19.1", | ||
"react": "^16.13.1", | ||
"react-dom": "^16.13.1", | ||
"react": "16.13.1", | ||
"react-dom": "16.13.1", | ||
"tslib": "2.0.0", | ||
@@ -32,0 +32,0 @@ "typescript": "3.9.5", |
@@ -20,3 +20,3 @@ import { pathToRegexp, Key, compile } from "path-to-regexp" | ||
): ReactNode | P | undefined | ||
toUrl(params?: Record<string, unknown>): string | ||
toUrl(params?: P): string | ||
} | ||
@@ -45,3 +45,3 @@ | ||
}, | ||
toUrl(params?: Record<string, unknown>) { | ||
toUrl(params?: P) { | ||
const defined = params | ||
@@ -48,0 +48,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
18155