mirror of
https://github.com/openharmony/js_api_module.git
synced 2026-07-19 18:23:43 -04:00
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:
+1
-1
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user