DefinitelyTyped/react-router/lib/IndexLink.d.ts

16 lines
478 B
TypeScript

import { ComponentClass, CSSProperties, HTMLProps } from "react";
import { Location, LocationDescriptor } from "history";
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;