UNPKG

got

Version:

Human-friendly and powerful HTTP request library for Node.js

14 lines (13 loc) 369 B
/// <reference types="node" resolution-mode="require"/> export type URLOptions = { href?: string; protocol?: string; host?: string; hostname?: string; port?: string | number; pathname?: string; search?: string; searchParams?: unknown; path?: string; }; export default function optionsToUrl(origin: string, options: URLOptions): URL;