DefinitelyTyped/types/next-server/link.d.ts
AJ Livingston 67d82a3999 Add @types/next-server / port @types/next lib (#29724)
* ported next lib to next-server

* lint fixes

* updated exports from next-server

* added maintainers from next to next-server

* removed deprecations from next-server

* added return value `false` to ServerRoute.match

* fixed formatting
2018-10-16 10:13:11 -07:00

18 lines
436 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.ReactElement<any>;
}
export default class Link extends React.Component<LinkProps> {}