mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-10 11:50:49 +08:00
explicit typings in tests
This commit is contained in:
1 parent
be05c35168
commit
a98c5955e8
1 file changed
+2
-2
@@ -642,13 +642,13 @@ obj = Promise.promisifyAll(obj);
|
||||
|
||||
declare var util: any;
|
||||
|
||||
function defaultFilter(name, func) {
|
||||
function defaultFilter(name: string, func: Function) {
|
||||
return util.isIdentifier(name) &&
|
||||
name.charAt(0) !== "_" &&
|
||||
!util.isClass(func);
|
||||
}
|
||||
|
||||
function DOMPromisifier(originalMethod) {
|
||||
function DOMPromisifier(originalMethod: Function) {
|
||||
// return a function
|
||||
return function promisified() {
|
||||
var args = [].slice.call(arguments);
|
||||
|
||||
Reference in new issue
Block a user