DefinitelyTyped/types/next/link.d.ts

17 lines
418 B
TypeScript

import * as url from 'url';
import * as React from 'react';
export type UrlLike = url.UrlObject | url.Url;
export interface LinkState {
prefetch?: boolean;
shallow?: boolean;
scroll?: boolean;
replace?: boolean;
onError?(error: any): void;
href?: string | UrlLike;
as?: string | UrlLike;
children: React.ReactElement<any>;
}
export default class extends React.Component<LinkState> {}