Update react-router definitions to 3.0.x

This commit is contained in:
Karol Janyst
2017-01-17 18:29:47 +09:00
parent 214b6845de
commit 69a9f6d671
44 changed files with 749 additions and 376 deletions

View File

@@ -1,5 +1,15 @@
import Link from './Link';
import { ComponentClass, CSSProperties, HTMLProps } from "react";
import { Location, LocationDescriptor } from "react-router/lib/Router";
type ToLocationFunction = (location: Location) => LocationDescriptor;
export interface IndexLinkProps extends HTMLProps<any> {
to: LocationDescriptor | ToLocationFunction;
activeClassName?: string;
activeStyle?: CSSProperties;
}
type IndexLink = ComponentClass<IndexLinkProps>;
declare const IndexLink: IndexLink;
declare const IndexLink: Link;
export default IndexLink;