From 0d6495ac430e0a3b7d1de7823bd6a227e723777d Mon Sep 17 00:00:00 2001 From: liujia178 Date: Wed, 18 Jun 2025 10:44:46 +0800 Subject: [PATCH] fix stream interface Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/ICFZ2H Signed-off-by: liujia178 --- api/@ohos.util.stream.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.util.stream.d.ts b/api/@ohos.util.stream.d.ts index fd0d8ddbeb..13baafad5e 100644 --- a/api/@ohos.util.stream.d.ts +++ b/api/@ohos.util.stream.d.ts @@ -439,7 +439,7 @@ declare namespace stream { * of the specified size is returned. Otherwise, if Readable has ended, all remaining buffers are returned. * * @param { number } [size] - Expected length of the data to be read. - * @returns { NullishType } If no data is available to read, null is returned. + * @returns { Any } If no data is available to read, null is returned. * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1.Mandatory parameters are left unspecified; * 2.Incorrect parameter types; @@ -451,7 +451,7 @@ declare namespace stream { * @since 20 * @arkts 1.2 */ - read(size?: number): NullishType; + read(size?: number): Any; /** * Switch Readable to Streaming Mode. -- Gitee