Fixed defs and tests

This commit is contained in:
Mykhailo Stadnyk
2016-08-12 15:44:32 +03:00
parent fb27145ccd
commit fcf8e2aedb
2 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ delete u.query.a;
delete u.query["a"];
// If you need to remove all query string params:
alert(u.clearQuaery());
alert(u.clearQuery());
// Lookup URL parts:
alert(
+9 -9
View File
@@ -5,7 +5,7 @@
declare class QueryString {
constructor(qs?: string);
toString(): string;
toString: () => string;
}
declare class Url<T> {
@@ -19,12 +19,12 @@ declare class Url<T> {
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;
toString: () => string;
encode: (s: string) => string;
decode: (s: string) => string;
isAbsolute: () => boolean;
paths: (paths?: [string]) => [string];
isEmptyQuery: () => boolean;
queryLength: () => number;
clearQuery: () => Url<T>;
}