From a73d5063b09fd87a47c12ef2b3e158411919d891 Mon Sep 17 00:00:00 2001 From: sunjie Date: Tue, 24 Jun 2025 21:11:06 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=20=E8=AE=BE=E8=AE=A1=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: sunjie --- api/@ohos.resourceManager.d.ts | 15 --------------- api/global/resource.d.ts | 4 ++-- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/api/@ohos.resourceManager.d.ts b/api/@ohos.resourceManager.d.ts index 16299a3c46..2101889552 100644 --- a/api/@ohos.resourceManager.d.ts +++ b/api/@ohos.resourceManager.d.ts @@ -2448,7 +2448,6 @@ declare namespace resourceManager { * @param { number } resId - Indicates the resource ID. * @param { (string | number)[] } args - Indicates the formatting string resource parameters. * @returns { string } The character string corresponding to the resource ID. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -2548,7 +2547,6 @@ declare namespace resourceManager { * @param { Resource } resource - Indicates the resource object. * @param { (string | number)[] } args - Indicates the formatting string resource parameters. * @returns { string } The character string corresponding to the resource object. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -2643,7 +2641,6 @@ declare namespace resourceManager { * @param { string } resName - Indicates the resource name. * @param { (string | number)[] } args - Indicates the formatting string resource parameters. * @returns { string } The character string corresponding to the resource name. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001003 - Invalid resource name. * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3219,7 +3216,6 @@ declare namespace resourceManager { * @param { Array } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the ID string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3240,7 +3236,6 @@ declare namespace resourceManager { * @param { (string | number)[] } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the ID string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3262,7 +3257,6 @@ declare namespace resourceManager { * @param { Array } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the ID string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3284,7 +3278,6 @@ declare namespace resourceManager { * @param { (string | number)[] } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the ID string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3307,7 +3300,6 @@ declare namespace resourceManager { * @param { Array } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the name string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001003 - Invalid resource name. * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3328,7 +3320,6 @@ declare namespace resourceManager { * @param { (string | number)[] } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the name string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001003 - Invalid resource name. * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3350,7 +3341,6 @@ declare namespace resourceManager { * @param { Array } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the ID string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3371,7 +3361,6 @@ declare namespace resourceManager { * @param { (string | number)[] } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the ID string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3393,7 +3382,6 @@ declare namespace resourceManager { * @param { Array } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the ID string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3415,7 +3403,6 @@ declare namespace resourceManager { * @param { (string | number)[] } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the ID string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3438,7 +3425,6 @@ declare namespace resourceManager { * @param { Array } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the name string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001003 - Invalid resource name. * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3459,7 +3445,6 @@ declare namespace resourceManager { * @param { (string | number)[] } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the name string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001003 - Invalid resource name. * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. diff --git a/api/global/resource.d.ts b/api/global/resource.d.ts index 6ebfe1cd8b..15b2ce8e97 100644 --- a/api/global/resource.d.ts +++ b/api/global/resource.d.ts @@ -98,7 +98,7 @@ export interface Resource { * * @type { ?any[] } * @syscap SystemCapability.Global.ResourceManager - * @since 7 + * @since 9 */ /** * Set params. @@ -128,7 +128,7 @@ export interface Resource { * * @type { ?number } * @syscap SystemCapability.Global.ResourceManager - * @since 7 + * @since 9 */ /** * Set type. -- Gitee From e40ce89a190de8c1fbf8aef335b74b36522d782d Mon Sep 17 00:00:00 2001 From: sunjie Date: Tue, 24 Jun 2025 21:55:39 +0800 Subject: [PATCH 2/2] update stageonly Signed-off-by: sj --- api/@ohos.resourceManager.d.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/api/@ohos.resourceManager.d.ts b/api/@ohos.resourceManager.d.ts index 2101889552..483da08c7a 100644 --- a/api/@ohos.resourceManager.d.ts +++ b/api/@ohos.resourceManager.d.ts @@ -2552,7 +2552,6 @@ declare namespace resourceManager { * @throws { BusinessError } 9001006 - The resource is referenced cyclically. * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID. * @syscap SystemCapability.Global.ResourceManager - * @stagemodelonly * @crossplatform * @atomicservice * @since 20 @@ -3283,7 +3282,6 @@ declare namespace resourceManager { * @throws { BusinessError } 9001006 - The resource is referenced cyclically. * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID. * @syscap SystemCapability.Global.ResourceManager - * @stagemodelonly * @crossplatform * @atomicservice * @since 20 @@ -3408,7 +3406,6 @@ declare namespace resourceManager { * @throws { BusinessError } 9001006 - The resource is referenced cyclically. * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID. * @syscap SystemCapability.Global.ResourceManager - * @stagemodelonly * @crossplatform * @atomicservice * @since 20 -- Gitee