Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/react-router/dist/lib/hooks.d.ts
rd565449 r0c6b92a 7 7 * custom links that are also accessible and preserve right-click behavior. 8 8 * 9 * @see https://reactrouter.com/ hooks/use-href9 * @see https://reactrouter.com/v6/hooks/use-href 10 10 */ 11 11 export declare function useHref(to: To, { relative }?: { … … 15 15 * Returns true if this component is a descendant of a `<Router>`. 16 16 * 17 * @see https://reactrouter.com/ hooks/use-in-router-context17 * @see https://reactrouter.com/v6/hooks/use-in-router-context 18 18 */ 19 19 export declare function useInRouterContext(): boolean; … … 26 26 * be able to provide something higher-level to better suit your needs. 27 27 * 28 * @see https://reactrouter.com/ hooks/use-location28 * @see https://reactrouter.com/v6/hooks/use-location 29 29 */ 30 30 export declare function useLocation(): Location; … … 33 33 * the current location, either by a pop, push, or replace on the history stack. 34 34 * 35 * @see https://reactrouter.com/ hooks/use-navigation-type35 * @see https://reactrouter.com/v6/hooks/use-navigation-type 36 36 */ 37 37 export declare function useNavigationType(): NavigationType; … … 41 41 * `<NavLink>`. 42 42 * 43 * @see https://reactrouter.com/ hooks/use-match43 * @see https://reactrouter.com/v6/hooks/use-match 44 44 */ 45 45 export declare function useMatch<ParamKey extends ParamParseKey<Path>, Path extends string>(pattern: PathPattern<Path> | Path): PathMatch<ParamKey> | null; … … 55 55 * may also be used by other elements to change the location. 56 56 * 57 * @see https://reactrouter.com/ hooks/use-navigate57 * @see https://reactrouter.com/v6/hooks/use-navigate 58 58 */ 59 59 export declare function useNavigate(): NavigateFunction; … … 61 61 * Returns the context (if provided) for the child route at this level of the route 62 62 * hierarchy. 63 * @see https://reactrouter.com/ hooks/use-outlet-context63 * @see https://reactrouter.com/v6/hooks/use-outlet-context 64 64 */ 65 65 export declare function useOutletContext<Context = unknown>(): Context; … … 68 68 * hierarchy. Used internally by `<Outlet>` to render child routes. 69 69 * 70 * @see https://reactrouter.com/ hooks/use-outlet70 * @see https://reactrouter.com/v6/hooks/use-outlet 71 71 */ 72 72 export declare function useOutlet(context?: unknown): React.ReactElement | null; … … 75 75 * URL that were matched by the route path. 76 76 * 77 * @see https://reactrouter.com/ hooks/use-params77 * @see https://reactrouter.com/v6/hooks/use-params 78 78 */ 79 79 export declare function useParams<ParamsOrKey extends string | Record<string, string | undefined> = string>(): Readonly<[ … … 83 83 * Resolves the pathname of the given `to` value against the current location. 84 84 * 85 * @see https://reactrouter.com/ hooks/use-resolved-path85 * @see https://reactrouter.com/v6/hooks/use-resolved-path 86 86 */ 87 87 export declare function useResolvedPath(to: To, { relative }?: { … … 94 94 * element. 95 95 * 96 * @see https://reactrouter.com/ hooks/use-routes96 * @see https://reactrouter.com/v6/hooks/use-routes 97 97 */ 98 98 export declare function useRoutes(routes: RouteObject[], locationArg?: Partial<Location> | string): React.ReactElement | null;
Note:
See TracChangeset
for help on using the changeset viewer.