From 7e2738894d0361aa922564d9369329fefa20aa28 Mon Sep 17 00:00:00 2001 From: xia-bubai Date: Tue, 24 Jun 2025 23:54:15 +0800 Subject: [PATCH] PermissionRequestResult change to declare Signed-off-by: xia-bubai --- api/security/PermissionRequestResult.d.ts | 37 +++++------------------ 1 file changed, 7 insertions(+), 30 deletions(-) diff --git a/api/security/PermissionRequestResult.d.ts b/api/security/PermissionRequestResult.d.ts index 05d2bceacc..060f279e77 100644 --- a/api/security/PermissionRequestResult.d.ts +++ b/api/security/PermissionRequestResult.d.ts @@ -46,7 +46,7 @@ import { int } from '@ohos.base'; * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ -export default class PermissionRequestResult { +declare class PermissionRequestResult { /** * The permissions passed in by the user. * @@ -72,23 +72,11 @@ export default class PermissionRequestResult { * @stagemodelonly * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ permissions: Array; - /** - * The permissions passed in by the user. - * - * @type { Array } - * @syscap SystemCapability.Security.AccessToken - * @stagemodelonly - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - permissions: Array = new Array(); - /** * The results for the corresponding request permissions. The value 0 indicates that a * permission is granted, the value -1 indicates not, and the value 2 indicates the request is invalid. @@ -117,24 +105,11 @@ export default class PermissionRequestResult { * @stagemodelonly * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ authResults: Array; - /** - * The results for the corresponding request permissions. The value 0 indicates that a - * permission is granted, the value -1 indicates not, and the value 2 indicates the request is invalid. - * - * @type { Array } - * @syscap SystemCapability.Security.AccessToken - * @stagemodelonly - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - authResults: Array = new Array(); - /** * Specifies whether a dialog box is shown for each requested permission. * The value true means that a dialog box is shown, and false means the opposite. @@ -168,3 +143,5 @@ export default class PermissionRequestResult { */ errorReasons?: Array; } + +export default PermissionRequestResult; -- Gitee