From 6bff939269361311efca91a6db52597d89886e44 Mon Sep 17 00:00:00 2001 From: honghecun Date: Thu, 21 Aug 2025 11:37:51 +0800 Subject: [PATCH] add null&undefined support annotation Signed-off-by: honghecun --- api/@ohos.hiSysEvent.d.ts | 72 +++++++++++++++++++++++++++++++++------ 1 file changed, 61 insertions(+), 11 deletions(-) diff --git a/api/@ohos.hiSysEvent.d.ts b/api/@ohos.hiSysEvent.d.ts index af3e8719de..f99484595d 100644 --- a/api/@ohos.hiSysEvent.d.ts +++ b/api/@ohos.hiSysEvent.d.ts @@ -140,10 +140,20 @@ declare namespace hiSysEvent { * @type { ?object } * @syscap SystemCapability.HiviewDFX.HiSysEvent * @systemapi hide for inner use - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ params?: object; + + /** + * The params of the event. + * + * @type { ?(Record | null | undefined) } + * @syscap SystemCapability.HiviewDFX.HiSysEvent + * @systemapi hide for inner use + * @since 20 + * @arkts 1.2 + */ + params?: Record | null | undefined; } /** @@ -281,11 +291,21 @@ declare namespace hiSysEvent { * @type { ?string } * @syscap SystemCapability.HiviewDFX.HiSysEvent * @systemapi hide for inner use - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ tag?: string; + /** + * The tag of the event. + * + * @type { ?(string | null | undefined) } + * @syscap SystemCapability.HiviewDFX.HiSysEvent + * @systemapi hide for inner use + * @since 20 + * @arkts 1.2 + */ + tag?: string | null | undefined; + /** * The rule of match system event * @@ -391,21 +411,41 @@ declare namespace hiSysEvent { * @type { ?long } * @syscap SystemCapability.HiviewDFX.HiSysEvent * @systemapi hide for inner use - * @since arkts {'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ fromSeq?: long; + /** + * Begin sequence + * + * @type { ?(long | null | undefined) } + * @syscap SystemCapability.HiviewDFX.HiSysEvent + * @systemapi hide for inner use + * @since 20 + * @arkts 1.2 + */ + fromSeq?: long | null | undefined; + /** * End sequence * * @type { ?long } * @syscap SystemCapability.HiviewDFX.HiSysEvent * @systemapi hide for inner use - * @since arkts {'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 + */ + toSeq?: long; + + /** + * End sequence + * + * @type { ?(long | null | undefined) } + * @syscap SystemCapability.HiviewDFX.HiSysEvent + * @systemapi hide for inner use + * @since 20 + * @arkts 1.2 */ - toSeq?: long + toSeq?: long | null | undefined; } /** @@ -446,10 +486,20 @@ declare namespace hiSysEvent { * @type { ?string } * @syscap SystemCapability.HiviewDFX.HiSysEvent * @systemapi hide for inner use - * @since arkts {'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ condition?: string; + + /** + * Extra parameter condition of event + * + * @type { ?(string | null | undefined) } + * @syscap SystemCapability.HiviewDFX.HiSysEvent + * @systemapi hide for inner use + * @since 20 + * @arkts 1.2 + */ + condition?: string | null | undefined; } /** -- Gitee