mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-17 07:20:23 +00:00
Fixed defs and tests
This commit is contained in:
@@ -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(
|
||||
|
||||
Vendored
+9
-9
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user