From d70968ced3d09683fcd44757d7f47fcbd44d7452 Mon Sep 17 00:00:00 2001 From: shikai-123 Date: Mon, 25 Jul 2022 17:47:23 +0800 Subject: [PATCH] Modify interface name issues: https://gitee.com/openharmony/js_util_module/issues/I5ISPI Signed-off-by: shikai-123 --- util/src/util_js.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/src/util_js.ts b/util/src/util_js.ts index c3f91ac..63f1158 100644 --- a/util/src/util_js.ts +++ b/util/src/util_js.ts @@ -441,7 +441,7 @@ function callbackWrapper(original : Fn) : void Object.defineProperties(cb, descriptors); } -function promiseWrapper(func : Function) : Function +function promisify(func : Function) : Function { return function (...args : Array) { return new Promise((resolve, reject) => { @@ -1011,7 +1011,7 @@ export default { printf: printf, getErrorString: getErrorString, callbackWrapper: callbackWrapper, - promiseWrapper: promiseWrapper, + promisify: promisify, createExternalType: createExternalType, TextEncoder: TextEncoder, TextDecoder: TextDecoder, -- Gitee