From 19a089254b859e59ffb99bcf023ca9352febf0f5 Mon Sep 17 00:00:00 2001 From: niulihua Date: Sun, 17 Dec 2023 20:29:22 +0000 Subject: [PATCH] modify for promptAction customDialog Signed-off-by: niulihua Change-Id: Ia725f9414ab8051a27a499054f9f1f0695eff172 --- api/@ohos.promptAction.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.promptAction.d.ts b/api/@ohos.promptAction.d.ts index d06e6988e..afe3ec5b9 100644 --- a/api/@ohos.promptAction.d.ts +++ b/api/@ohos.promptAction.d.ts @@ -591,14 +591,14 @@ declare namespace promptAction { * Open the custom dialog. * * @param { CustomDialogOptions } options - Options. - * @returns { number } return the dialog id that will be used by closeCustomDialog. + * @returns { Promise } return the dialog id that will be used by closeCustomDialog. * @throws { BusinessError } 401 - if the number of parameters is not 1 or the type of parameters is incorrect. * @throws { BusinessError } 100001 - if UI execution context not found. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ - function openCustomDialog(options: CustomDialogOptions): number; + function openCustomDialog(options: CustomDialogOptions): Promise; /** * Close the custom dialog.