From 18abc1528c61ac5371e0236f340f291dc57f2612 Mon Sep 17 00:00:00 2001 From: shead-master Date: Tue, 19 Aug 2025 16:40:39 +0800 Subject: [PATCH] number to int for setAppResourcelimit Signed-off-by: shead-master --- api/@ohos.hidebug.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.hidebug.d.ts b/api/@ohos.hidebug.d.ts index 78003f5f77..d359ae0c0a 100644 --- a/api/@ohos.hidebug.d.ts +++ b/api/@ohos.hidebug.d.ts @@ -892,7 +892,7 @@ declare namespace hidebug { * Sets the number of FDs, number of threads, JS memory, or native memory limit of the application. * * @param { string } type - resource type. It could be pss_memory、js_heap、fd、or thread. - * @param { int } value - For different resource type, values could have different meaning: + * @param { number } value - For different resource type, values could have different meaning: * 1.For pss_memory, it means the baseline PSS memory size for the application, * system memory control will be triggered if exceed the value too much. * 2.For js_heap, it means the percentage of the used JS heap memory to the maximum limit exceed @@ -910,7 +910,7 @@ declare namespace hidebug { * @atomicservice * @since 12 */ - function setAppResourceLimit(type: string, value: int, enableDebugLog: boolean): void; + function setAppResourceLimit(type: string, value: number, enableDebugLog: boolean): void; /** * Obtains the debugging state of an application process. If the Ark or native layer of the application process is in -- Gitee