From 5cca8b39b92d6d408205edabd827e80caae73282 Mon Sep 17 00:00:00 2001 From: Michael McKenzie Date: Tue, 19 Jul 2016 11:16:55 +0100 Subject: [PATCH] Changing hitch signature to match documentation --- dojo/dojo.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dojo/dojo.d.ts b/dojo/dojo.d.ts index 687dba4cf7..8a566a46f5 100644 --- a/dojo/dojo.d.ts +++ b/dojo/dojo.d.ts @@ -5617,7 +5617,7 @@ declare namespace dojo { * @param scope The scope to use when method executes. If method is a string,scope is also the object containing method. * @param method A function to be hitched to scope, or the name of the method inscope to be hitched. */ - hitch(scope: Object, method: (...args: any[]) => any): any; + hitch(scope: Object, method: (...args: any[]) => any, ...args: any[]): any; /** * Returns a function that will only ever execute in the a given scope. * This allows for easy use of object member functions @@ -5631,7 +5631,7 @@ declare namespace dojo { * @param scope The scope to use when method executes. If method is a string,scope is also the object containing method. * @param method A function to be hitched to scope, or the name of the method inscope to be hitched. */ - hitch(scope: Object, method: string): any; + hitch(scope: Object, method: string, ...args: any[]): any; /** * Returns true if it is a built-in function or some other kind of * oddball that should report as a function but doesn't