Files
DefinitelyTyped/types/domurl/index.d.ts
2017-03-24 14:27:52 -07:00

31 lines
761 B
TypeScript

// Type definitions for domurl
// Project: https://github.com/Mikhus/domurl
// Definitions by: Mikhus <ttps://github.com/Mikhus>
// Definitions: https://github.com/Mikhus/DefinitelyTyped
declare class QueryString {
constructor(qs?: string);
toString: () => string;
}
declare class Url<T> {
constructor(url?: string);
query: 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<T>;
}