From eb5a3dc945d1f9f5d707277f4bbe8d738437a9ec Mon Sep 17 00:00:00 2001 From: buzhenwang Date: Wed, 6 Aug 2025 17:34:32 +0800 Subject: [PATCH] add RecordData Signed-off-by: buzhenwang --- interfaces/ets/ani/hilog/ets/@ohos.hilog.ets | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/interfaces/ets/ani/hilog/ets/@ohos.hilog.ets b/interfaces/ets/ani/hilog/ets/@ohos.hilog.ets index eb237b6..15cb6a7 100644 --- a/interfaces/ets/ani/hilog/ets/@ohos.hilog.ets +++ b/interfaces/ets/ani/hilog/ets/@ohos.hilog.ets @@ -13,23 +13,25 @@ * limitations under the License. */ +type RecordData = undefined | null | Object | Record | Array; + export default namespace hilog { loadLibrary("hilog_ani"); export native function debug(domain: number, tag: string, format: string, - ...args: (int|boolean|number|string|bigint|Object|undefined|null)[]): void; + ...args: RecordData[]): void; export native function info(domain: number, tag: string, format: string, - ...args: (int|boolean|number|string|bigint|Object|undefined|null)[]): void; + ...args: RecordData[]): void; export native function warn(domain: number, tag: string, format: string, - ...args: (int|boolean|number|string|bigint|Object|undefined|null)[]): void; + ...args: RecordData[]): void; export native function error(domain: number, tag: string, format: string, - ...args: (int|boolean|number|string|bigint|Object|undefined|null)[]): void; + ...args: RecordData[]): void; export native function fatal(domain: number, tag: string, format: string, - ...args: (int|boolean|number|string|bigint|Object|undefined|null)[]): void; + ...args: RecordData[]): void; export native function isLoggable(domain: number, tag: string, level: LogLevel): boolean; -- Gitee