got
Version:
Human-friendly and powerful HTTP request library for Node.js
15 lines (14 loc) • 357 B
TypeScript
import { URL } from 'url';
export interface URLOptions {
href?: string;
protocol?: string;
host?: string;
hostname?: string;
port?: string | number;
pathname?: string;
search?: string;
searchParams?: unknown;
path?: string;
}
declare const _default: (origin: string, options: URLOptions) => URL;
export default _default;