mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-07 23:37:35 +08:00
Update react-router definitions to 3.0.x
This commit is contained in:
16
react-router/lib/IndexLink.d.ts
vendored
16
react-router/lib/IndexLink.d.ts
vendored
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user