mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
428 B
TypeScript
18 lines
428 B
TypeScript
import * as url from "url";
|
|
import * as React from "react";
|
|
import { UrlLike } from "./router";
|
|
|
|
export interface LinkProps {
|
|
prefetch?: boolean;
|
|
shallow?: boolean;
|
|
scroll?: boolean;
|
|
replace?: boolean;
|
|
onError?(error: any): void;
|
|
href?: string | UrlLike;
|
|
as?: string | UrlLike;
|
|
passHref?: boolean;
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export default class Link extends React.Component<LinkProps> {}
|