From 13f14cc321948af3873f1436d79ff1f65019aa00 Mon Sep 17 00:00:00 2001 From: "@wang-jingwu001" Date: Fri, 12 Aug 2022 17:28:58 +0800 Subject: [PATCH] Modify the decode input parameters of the util.d.ts interface Signed-off-by: @wang-jingwu001 https://gitee.com/openharmony/interface_sdk-js/issues/I5M3Z2 --- api/@ohos.util.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/@ohos.util.d.ts b/api/@ohos.util.d.ts index a46db2c3e7..93aee728c8 100644 --- a/api/@ohos.util.d.ts +++ b/api/@ohos.util.d.ts @@ -126,6 +126,15 @@ declare namespace util { * @return return decoded text */ decode(input: Uint8Array, options?: { stream?: false }): string; + + /** + * Returns the result of running encoding's decoder. + * @since 9 + * @syscap SystemCapability.Utils.Lang + * @param input decoded numbers in accordance with the format + * @return return decoded text + */ + decodeWithStream(input: Uint8Array, options?: { stream?: boolean }): string; } class TextEncoder { -- Gitee