From c0ff329a4edad9e4df3a89d1d75c246c103cc325 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Wed, 13 Jan 2016 17:14:22 +0100 Subject: [PATCH 1/2] Add overload to allow both forms of global property setting in calq --- calq/calq.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/calq/calq.d.ts b/calq/calq.d.ts index c574df58f..390124c1e 100644 --- a/calq/calq.d.ts +++ b/calq/calq.d.ts @@ -19,7 +19,9 @@ declare module Calq trackSale(action:string, params:{[index:string]:any}, currency:string, amount:number):void; trackHTMLLink(action:string, params?:{[index:string]:any}):void; trackPageView(action?:string):void; - setGlobalProperty(name:string,value:any):void; + + setGlobalProperty(name:string, value:any):void; + setGlobalProperty(params?: {[index:string]: any}):void; } interface User From 60b04cfffea80d3687792e45d1450a1778e6b312 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Wed, 13 Jan 2016 17:17:37 +0100 Subject: [PATCH 2/2] Make property params non-options (whoops) --- calq/calq.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calq/calq.d.ts b/calq/calq.d.ts index 390124c1e..331b89720 100644 --- a/calq/calq.d.ts +++ b/calq/calq.d.ts @@ -21,7 +21,7 @@ declare module Calq trackPageView(action?:string):void; setGlobalProperty(name:string, value:any):void; - setGlobalProperty(params?: {[index:string]: any}):void; + setGlobalProperty(params: {[index:string]: any}):void; } interface User