mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 05:20:24 +08:00
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 cdfb764333.
This commit is contained in:
committed by
Mohamed Hegazy
parent
824a44df29
commit
0115fd3dff
4
dojo/dojo.d.ts
vendored
4
dojo/dojo.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user