From d2f90e7f2cfac02e4456f70b981d9d39ec3d057b Mon Sep 17 00:00:00 2001 From: Joel Wetzel Date: Mon, 9 Feb 2015 09:07:49 -0800 Subject: [PATCH] Update URI.d.ts uri.search(true) does return an object, but Typescript believes there is a difference between an Object and any. Thus, if your querystring includes ?myParam=myValue, you should be able to access the value using uri.search(true).myParam. However, the compiler threw the error "The property 'myParam' does not exist on on value of type 'Object'". Changing the return type to any fixes this. --- urijs/URI.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/urijs/URI.d.ts b/urijs/URI.d.ts index 21c7faf982..818c24a56b 100644 --- a/urijs/URI.d.ts +++ b/urijs/URI.d.ts @@ -72,7 +72,7 @@ declare class URI { segment(level: string): string; search(): string; search(qry: string): URI; - search(qry: boolean): Object; + search(qry: boolean): any; search(qry: Object): URI; query(): string; query(qry: string): URI;