UNPKG

442 BTypeScriptView Raw
1import * as url from "url";
2import * as React from "react";
3
4export type UrlLike = url.UrlObject | url.Url;
5export interface LinkState {
6 prefetch?: boolean;
7 shallow?: boolean;
8 scroll?: boolean;
9 replace?: boolean;
10 onError?(error: any): void;
11 href?: string | UrlLike;
12 as?: string | UrlLike;
13 passHref?: boolean;
14 children: React.ReactElement<any>;
15}
16
17export default class extends React.Component<LinkState> {}