UNPKG

434 BTypeScriptView Raw
1declare module 'whatwg-url' {
2 export function parseURL(
3 input: string, options?: {baseURL?: URL, encodingOverride?: string}): URL|
4 null;
5
6 // https://url.spec.whatwg.org/#url-class
7 export interface URL {
8 scheme: string;
9 username: string;
10 password: string;
11 host: string;
12 port: number|null;
13 path: string[];
14 query: string|null;
15 fragment: string|null;
16 cannotBeABaseURL: boolean;
17 }
18}