Add type declaration for MessageEvents.data

Issue: https://gitee.com/openharmony/interface_sdk-js/issues/IAHNNR

Signed-off-by: milkpotatoes <chenshulin5@huawei.com>
Change-Id: Idb07b30b5aecbe622cee6185f1f20aa415d68e78
This commit is contained in:
milkpotatoes 2024-08-03 21:34:59 +08:00
parent 89aaa6ea61
commit 85ff14c0ef

View File

@ -410,12 +410,14 @@ export interface MessageEvents extends Event {
/**
* Data transferred when an exception occurs.
*
* @type { any }
* @syscap SystemCapability.Utils.Lang
* @since 9
*/
/**
* Data transferred when an exception occurs.
*
* @type { any }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
@ -423,13 +425,14 @@ export interface MessageEvents extends Event {
/**
* Data transferred when an exception occurs.
*
* @type { any }
* @readonly
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 11
*/
readonly data;
readonly data: any;
}
/**