From a2d863b919534d3332be6cad89aaf9e305cb18f6 Mon Sep 17 00:00:00 2001 From: wangben Date: Fri, 10 Jun 2022 09:11:15 +0800 Subject: [PATCH] Change the textEncode constructor parameter Description:Change interface description issues:https://gitee.com/openharmony/js_util_module/issues/I5BM5H Signed-off-by: wangben --- api/@ohos.util.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/@ohos.util.d.ts b/api/@ohos.util.d.ts index 4ec1ce1808..ea00afe070 100644 --- a/api/@ohos.util.d.ts +++ b/api/@ohos.util.d.ts @@ -132,6 +132,14 @@ declare namespace util { */ constructor(); + /** + * the textEncoder constructor. + * @since 9 + * @syscap SystemCapability.Utils.Lang + * @param encoding The string for encoding format. + */ + constructor(encoding?: string); + /** * Returns the result of encoder. * @since 7 -- Gitee