1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { match } from "react-router";
|
9 | import * as React from 'react';
|
10 | import * as H from 'history';
|
11 |
|
12 | export {
|
13 | Prompt,
|
14 | MemoryRouter,
|
15 | RedirectProps,
|
16 | Redirect,
|
17 | RouteComponentProps,
|
18 | RouteProps,
|
19 | Route,
|
20 | Router,
|
21 | StaticRouter,
|
22 | Switch,
|
23 | match,
|
24 | matchPath,
|
25 | withRouter,
|
26 | RouterChildContext
|
27 | } from 'react-router';
|
28 |
|
29 | export interface BrowserRouterProps {
|
30 | basename?: string;
|
31 | getUserConfirmation?: ((message: string, callback: (ok: boolean) => void) => void);
|
32 | forceRefresh?: boolean;
|
33 | keyLength?: number;
|
34 | }
|
35 | export class BrowserRouter extends React.Component<BrowserRouterProps, any> {}
|
36 |
|
37 | export interface HashRouterProps {
|
38 | basename?: string;
|
39 | getUserConfirmation?: ((message: string, callback: (ok: boolean) => void) => void);
|
40 | hashType?: 'slash' | 'noslash' | 'hashbang';
|
41 | }
|
42 | export class HashRouter extends React.Component<HashRouterProps, any> {}
|
43 |
|
44 | export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
45 | to: H.LocationDescriptor;
|
46 | replace?: boolean;
|
47 | }
|
48 | export class Link extends React.Component<LinkProps, any> {}
|
49 |
|
50 | export interface NavLinkProps extends LinkProps {
|
51 | activeClassName?: string;
|
52 | activeStyle?: React.CSSProperties;
|
53 | exact?: boolean;
|
54 | strict?: boolean;
|
55 | isActive?<P>(match: match<P>, location: H.Location): boolean;
|
56 | location?: H.Location;
|
57 | }
|
58 | export class NavLink extends React.Component<NavLinkProps, any> {}
|
59 |
|
\ | No newline at end of file |