@types/urlparser
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

Installation

npm install --save @types/urlparser

Summary

This package contains type definitions for urlparser (https://github.com/kaerus-component/urlparser).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/urlparser.

index.d.ts

// TypeScript Version: 2.2

interface UrlData {
    host: {
        protocol: string;
        username: string;
        password: string;
        hostname: string;
        port: string | number;
    };
    path: {
        base: string;
        name: string;
        hash: string;
    };
    query: {
        parts: string[];
        params: object;
    };
    toString: () => string;
}

interface UrlParser {
    url: (o: UrlData | undefined) => string;
    host: (o: UrlData | undefined) => string;
    path: (o: UrlData | undefined) => string;
    query: (o: UrlData | undefined) => string;
    parse: (parse: string) => UrlData;
}

declare const urlParser: UrlParser;

export = urlParser;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by OpenByteDev.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/urlparser

Weekly Downloads

9

Version

0.2.3

License

MIT

Unpacked Size

3.93 kB

Total Files

5

Last publish

Collaborators

  • types