mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
637 B
TypeScript
23 lines
637 B
TypeScript
import * as React from 'react';
|
|
import Router from './Router';
|
|
import * as H from 'history';
|
|
|
|
declare const Link: Link;
|
|
type Link = Link.Link;
|
|
|
|
export default Link;
|
|
|
|
declare namespace Link {
|
|
interface LinkProps extends React.HTMLAttributes<Link>, React.Props<Link> {
|
|
activeStyle?: React.CSSProperties;
|
|
activeClassName?: string;
|
|
onlyActiveOnIndex?: boolean;
|
|
to: Router.RoutePattern | H.LocationDescriptor;
|
|
query?: H.Query;
|
|
state?: H.LocationState;
|
|
}
|
|
|
|
interface Link extends React.ComponentClass<LinkProps> {}
|
|
interface LinkElement extends React.ReactElement<LinkProps> {}
|
|
}
|