15 lines
1.8 KiB
TypeScript
15 lines
1.8 KiB
TypeScript
|
import type { Hash, Location, Path, Pathname, Search, To } from "history";
|
||
|
import { Action as NavigationType, parsePath, createPath } from "history";
|
||
|
import type { MemoryRouterProps, NavigateProps, OutletProps, RouteProps, PathRouteProps, LayoutRouteProps, IndexRouteProps, RouterProps, RoutesProps } from "./lib/components";
|
||
|
import { createRoutesFromChildren, renderMatches, MemoryRouter, Navigate, Outlet, Route, Router, Routes } from "./lib/components";
|
||
|
import type { Navigator } from "./lib/context";
|
||
|
import { LocationContext, NavigationContext, RouteContext } from "./lib/context";
|
||
|
import type { NavigateFunction, NavigateOptions } from "./lib/hooks";
|
||
|
import { useHref, useInRouterContext, useLocation, useMatch, useNavigationType, useNavigate, useOutlet, useOutletContext, useParams, useResolvedPath, useRoutes } from "./lib/hooks";
|
||
|
import type { Params, PathMatch, PathPattern, RouteMatch, RouteObject } from "./lib/router";
|
||
|
import { generatePath, matchPath, matchRoutes, resolvePath } from "./lib/router";
|
||
|
export type { Hash, IndexRouteProps, LayoutRouteProps, Location, MemoryRouterProps, NavigateFunction, NavigateOptions, NavigateProps, OutletProps, PathMatch, PathPattern, PathRouteProps, RouteMatch, RouteObject, RouteProps, RouterProps, RoutesProps, Navigator, Params, Path, Pathname, Search, To, };
|
||
|
export { MemoryRouter, Navigate, NavigationType, Outlet, Route, Router, Routes, createPath, createRoutesFromChildren, generatePath, matchPath, matchRoutes, parsePath, renderMatches, resolvePath, useHref, useInRouterContext, useLocation, useMatch, useNavigate, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRoutes, };
|
||
|
/** @internal */
|
||
|
export { NavigationContext as UNSAFE_NavigationContext, LocationContext as UNSAFE_LocationContext, RouteContext as UNSAFE_RouteContext, };
|