@tdb/web
Version:
Common condiguration for serving a web-site and testing web-based UI components.
17 lines (16 loc) • 491 B
TypeScript
/// <reference types="node" />
/// <reference types="react" />
import { React } from '../../common';
import * as url from 'url';
export declare type UrlLike = url.UrlObject | url.Url;
export interface ILinkProps {
prefetch?: boolean;
shallow?: boolean;
scroll?: boolean;
replace?: boolean;
onError?(error: any): void;
href?: string | UrlLike;
as?: string | UrlLike;
children?: React.ReactNode;
}
export declare const Link: (props: ILinkProps) => JSX.Element;