mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
16 lines
478 B
TypeScript
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;
|