17 lines
428 B
TypeScript
17 lines
428 B
TypeScript
/// <reference types="node" />
|
|
import { URL, UrlWithStringQuery } from 'url';
|
|
export interface LegacyUrlOptions {
|
|
protocol: string;
|
|
hostname: string;
|
|
host: string;
|
|
hash: string | null;
|
|
search: string | null;
|
|
pathname: string;
|
|
href: string;
|
|
path: string;
|
|
port?: number;
|
|
auth?: string;
|
|
}
|
|
declare const _default: (url: URL | UrlWithStringQuery) => LegacyUrlOptions;
|
|
export default _default;
|