index.d.ts 370 B

123456789101112131415161718
  1. declare interface ParsedUrl {
  2. protocols: string[];
  3. protocol: string;
  4. port?: string;
  5. resource: string;
  6. user: string;
  7. pathname: string;
  8. hash: string;
  9. search: string;
  10. href: string;
  11. query: {
  12. [key: string]: any;
  13. }
  14. }
  15. declare function parseUrl(url: string, normalize?: boolean | Object): ParsedUrl;
  16. export default parseUrl