UNPKG

got-cjs

Version:

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

15 lines (14 loc) 379 B
/// <reference types="node" /> import { URL } from 'url'; export declare 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;