@pojo-router/react-browser-pathname
Advanced tools
Comparing version 0.3.1 to 0.3.2-beta.0
import type { ReactNode } from 'react'; | ||
import { UpdateContext } from './context'; | ||
declare const BrowserPathname: ({ children }: { | ||
@@ -10,2 +11,3 @@ children: ReactNode; | ||
export { Link } from './Link'; | ||
export { UpdateContext }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,5 +5,9 @@ import React from 'react'; | ||
replace: boolean; | ||
onClick?: React.MouseEventHandler<HTMLAnchorElement>; | ||
} & (({ | ||
component: React.ComponentType<P>; | ||
onClick?: React.MouseEventHandler<HTMLAnchorElement>; | ||
} & P; | ||
} & P) | ({ | ||
component: string; | ||
children: React.ReactChild; | ||
} & React.AnchorHTMLAttributes<HTMLAnchorElement>)); | ||
export declare function Link<P extends Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick' | 'target'> = React.AnchorHTMLAttributes<HTMLAnchorElement>>({ to, replace, component: Component, onClick, ...rest }: LinkProps<P>): JSX.Element; | ||
@@ -10,0 +14,0 @@ export declare namespace Link { |
{ | ||
"name": "@pojo-router/react-browser-pathname", | ||
"version": "0.3.1", | ||
"version": "0.3.2-beta.0", | ||
"description": "A react hooks wrapper around the browser's pathname", | ||
@@ -65,4 +65,3 @@ "scripts": { | ||
} | ||
}, | ||
"gitHead": "b2c928cc400cfdc1d144b90ca4442a1a2e657751" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
291
26588
16