next
Version:
The React Framework
13 lines (12 loc) • 331 B
TypeScript
import type { ParsedUrlQuery } from 'querystring';
export interface ParsedUrl {
hash: string;
hostname?: string | null;
href: string;
pathname: string;
port?: string | null;
protocol?: string | null;
query: ParsedUrlQuery;
search: string;
}
export declare function parseUrl(url: string): ParsedUrl;