DefinitelyTyped/react-router/lib/IndexLink.d.ts
2017-01-17 18:29:47 +09:00

16 lines
494 B
TypeScript

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;
export default IndexLink;