mirror of
https://github.com/openharmony/js_api_module.git
synced 2026-07-19 10:16:08 -04:00
!130 Modify the return value type of promisewrapper
Merge pull request !130 from 周飞/master
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