!130 Modify the return value type of promisewrapper

Merge pull request !130 from 周飞/master
This commit is contained in:
openharmony_ci
2022-07-05 09:49:02 +00:00
committed by Gitee
+1 -1
View File
@@ -441,7 +441,7 @@ function callbackWrapper(original : Fn) : void
Object.defineProperties(cb, descriptors);
}
function promiseWrapper(func : Function) : Object
function promiseWrapper(func : Function) : Function
{
return function (...args : Array<Object>) {
return new Promise((resolve, reject) => {