From fcf8e2aedb578db684f6aa3831656d310f05b145 Mon Sep 17 00:00:00 2001 From: Mykhailo Stadnyk Date: Fri, 12 Aug 2016 15:44:32 +0300 Subject: [PATCH] Fixed defs and tests --- domurl/domurl-tests.ts | 2 +- domurl/domurl.d.ts | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/domurl/domurl-tests.ts b/domurl/domurl-tests.ts index fd4895ed5f..0b83b1c491 100644 --- a/domurl/domurl-tests.ts +++ b/domurl/domurl-tests.ts @@ -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( diff --git a/domurl/domurl.d.ts b/domurl/domurl.d.ts index f659ca1843..8c418c75cc 100644 --- a/domurl/domurl.d.ts +++ b/domurl/domurl.d.ts @@ -5,7 +5,7 @@ declare class QueryString { constructor(qs?: string); - toString(): string; + toString: () => string; } declare class Url { @@ -19,12 +19,12 @@ declare class Url { 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; }