Modify the return value type of promisewrapper

Change the return value from object to function

issues: https://gitee.com/openharmony/js_util_module/issues/I5DVPV

Signed-off-by: zhoufei <zhoufei38@huawei.com>
This commit is contained in:
shikai-123
2022-07-04 12:36:50 +08:00
parent 335954bb1a
commit 8629b220a2
+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) => {