0.0.9 • Published 6 months ago
@types/domurl v0.0.9
Installation
npm install --save @types/domurl
Summary
This package contains type definitions for domurl (https://github.com/Mikhus/domurl).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/domurl.
index.d.ts
// Type definitions for domurl
// Project: https://github.com/Mikhus/domurl
// Definitions by: Mikhus <ttps://github.com/Mikhus>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace domurl {
type QueryString<T> = T;
}
declare class Url<T> {
constructor(url?: string);
query: domurl.QueryString<T>;
protocol: string;
user: string;
pass: string;
host: string;
port: string;
path: string;
hash: string;
href: string;
toString: () => string;
encode: (s: string) => string;
decode: (s: string) => string;
isAbsolute: () => boolean;
paths: (paths?: [string]) => [string];
isEmptyQuery: () => boolean;
queryLength: () => number;
clearQuery: () => Url<{}>;
}
export = Url;
Additional Details
- Last updated: Fri, 09 Jul 2021 02:32:25 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Mikhus.