DefinitelyTyped/types/next-server/link.d.ts
Vincent Langlet 1a07ffda4e Fix lint
2019-02-12 14:01:30 +01:00

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