create-url.d.ts 235 B

123456789
  1. import { URL } from 'url';
  2. type CreateUrlParams = {
  3. protocol?: string;
  4. host?: string;
  5. port?: string;
  6. path?: string;
  7. };
  8. export declare function createUrl({ protocol, host, port, path }: CreateUrlParams): URL;
  9. export {};