From 2863587680f256b3ae0ca77183a5701a59fd900b Mon Sep 17 00:00:00 2001 From: Chris Charabaruk Date: Thu, 7 May 2015 11:16:20 -0400 Subject: [PATCH] jsuri: need to declare global Uri as type instead of var Declaring the global Uri as a var instead of as a type leads to runtime errors as the jsuri script leaks Uri to global directly when not loaded via AMD or CommonJS, instead of leaking a jsuri module object. Developers working with jsuri in the global namespace need to use Uri directly instead of prfacing with jsuri in order to avoid runtime issues with 'jsuri' being undefined. --- jsuri/jsuri.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsuri/jsuri.d.ts b/jsuri/jsuri.d.ts index b843abf61..a50002140 100644 --- a/jsuri/jsuri.d.ts +++ b/jsuri/jsuri.d.ts @@ -132,7 +132,7 @@ declare module jsuri { } } -declare var Uri : jsuri.Uri; +declare type Uri = jsuri.Uri; declare module 'jsuri' { export = Uri;