parse-url.d.ts 362 B

12345678910111213
  1. /// <reference types="node" />
  2. import type { ParsedUrlQuery } from 'querystring';
  3. export interface ParsedUrl {
  4. hash: string;
  5. hostname?: string | null;
  6. href: string;
  7. pathname: string;
  8. port?: string | null;
  9. protocol?: string | null;
  10. query: ParsedUrlQuery;
  11. search: string;
  12. }
  13. export declare function parseUrl(url: string): ParsedUrl;