From 0115fd3dffd6f4d9c479e7e1babbd77e7a7dda2c Mon Sep 17 00:00:00 2001 From: Michael McKenzie Date: Wed, 20 Jul 2016 07:40:31 +0100 Subject: [PATCH] Changing hitch signature to match documentation (#10183) * Changing hitch signature to match documentation * Changing hitch signature to match documentation * Changing dojo/_base/lang mixin signature to match documentation * Revert "Changing dojo/_base/lang mixin signature to match documentation" This reverts commit cdfb764333a69c177fa59837d92a98b03f564538. --- 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 bf3258a14a..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: Function): 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