diff --git a/api/@ohos.commonEvent.d.ts b/api/@ohos.commonEvent.d.ts index 2ca7d7d8f6f40e632e7f54fc98a349b746761d45..f4b038a2070d49942d28525cd58aa7362b4d2fea 100644 --- a/api/@ohos.commonEvent.d.ts +++ b/api/@ohos.commonEvent.d.ts @@ -35,7 +35,7 @@ declare namespace commonEvent { * @since 7 * @param event name of the common event. * @param callback Specified callback method. - * @return - + * @returns - * @deprecated since 9 * @useinstead ohos.commonEventManager.publish */ @@ -48,7 +48,7 @@ declare namespace commonEvent { * @param event name of the common event. * @param options Indicate the CommonEventPublishData containing the common event content and attributes. * @param callback Specified callback method. - * @return - + * @returns - * @deprecated since 9 * @useinstead ohos.commonEventManager.publish */ @@ -61,7 +61,7 @@ declare namespace commonEvent { * @param event Specified the names of the common events. * @param userId Specified the user to receive the common events. * @param callback Specified callback method. - * @return - + * @returns - * * @systemapi Hide this for inner system use. * @deprecated since 9 @@ -77,7 +77,7 @@ declare namespace commonEvent { * @param userId Specified the user to receive the common events. * @param options Indicates the CommonEventPublishData containing the common event content and attributes. * @param callback Specified callback method. - * @return - + * @returns - * * @systemapi Hide this for inner system use. * @deprecated since 9 @@ -91,7 +91,7 @@ declare namespace commonEvent { * @since 7 * @param subscribeInfo Indicates the information of the subscriber. * @param callback Specified callback method. - * @return - + * @returns - * @deprecated since 9 * @useinstead ohos.commonEventManager.createSubscriber */ @@ -102,7 +102,7 @@ declare namespace commonEvent { * * @since 7 * @param subscribeInfo Indicates the information of the subscriber. - * @return Returns common event subscriber object + * @returns Returns common event subscriber object * @deprecated since 9 * @useinstead ohos.commonEventManager.createSubscriber */ @@ -114,7 +114,7 @@ declare namespace commonEvent { * @since 7 * @param subscriber Indicate the subscriber of the common event. * @param callback Specified callback method. - * @return - + * @returns - * @deprecated since 9 * @useinstead ohos.commonEventManager.subscribe */ @@ -126,7 +126,7 @@ declare namespace commonEvent { * @since 7 * @param subscriber Indicate the subscriber of the common event. * @param callback Specified callback method. - * @return - + * @returns - * @deprecated since 9 * @useinstead ohos.commonEventManager.unsubscribe */ diff --git a/api/@ohos.events.emitter.d.ts b/api/@ohos.events.emitter.d.ts index ee1ae48a41e61f8a62c55f198cc77dc02aac1806..6fbe9037b31d3db37a4568b6dac156fb8933111e 100644 --- a/api/@ohos.events.emitter.d.ts +++ b/api/@ohos.events.emitter.d.ts @@ -30,7 +30,7 @@ declare namespace emitter { * @since 7 * @param event indicate event to subscribe to. * @param callback indicate callback used to receive the event. - * @return - + * @returns - */ function on(event: InnerEvent, callback: Callback): void; @@ -41,7 +41,7 @@ declare namespace emitter { * @since 7 * @param event indicate event to subscribe to in one shot. * @param callback indicate callback used to receive the event. - * @return - + * @returns - */ function once(event: InnerEvent, callback: Callback): void; @@ -50,7 +50,7 @@ declare namespace emitter { * * @since 7 * @param eventId indicate ID of the event to unsubscribe from. - * @return - + * @returns - */ function off(eventId: number): void; @@ -60,7 +60,7 @@ declare namespace emitter { * @since 7 * @param event indicate event to emit. * @param data indicate data carried by the event. - * @return - + * @returns - */ function emit(event: InnerEvent, data?: EventData): void; diff --git a/api/@ohos.notification.d.ts b/api/@ohos.notification.d.ts index 5f59a2d89819af9eb548500f6b6fc5334739e89c..58647e30a6aa270de56f4f6631247c08533054bb 100644 --- a/api/@ohos.notification.d.ts +++ b/api/@ohos.notification.d.ts @@ -211,7 +211,7 @@ declare namespace notification { * * @param slotType Type of the notification slot to obtain. * @param callback callback function - * @return Returns the created {@link NotificationSlot}. + * @returns Returns the created {@link NotificationSlot}. * @deprecated since 9 * @useinstead ohos.notificationManager.getSlot */ @@ -221,7 +221,7 @@ declare namespace notification { /** * Obtains all NotificationSlot objects created by the current application. * - * @return Returns all notification slots of this application. + * @returns Returns all notification slots of this application. * @deprecated since 9 * @useinstead ohos.notificationManager.getSlots */ diff --git a/api/@ohos.notificationSubscribe.d.ts b/api/@ohos.notificationSubscribe.d.ts index 0d530853c1c806b290eab8548996534cf3475644..3b995efac15d698cee648d1bbd626599e18ee2f0 100644 --- a/api/@ohos.notificationSubscribe.d.ts +++ b/api/@ohos.notificationSubscribe.d.ts @@ -24,7 +24,6 @@ import { EnabledNotificationCallbackData as _EnabledNotificationCallbackData } f * @since 9 * @systemapi * @syscap SystemCapability.Notification.Notification - * @import import notificationSubscribe from '@ohos.notification.subscribe'; * @permission N/A */ declare namespace notificationSubscribe { diff --git a/api/commonEvent/commonEventSubscriber.d.ts b/api/commonEvent/commonEventSubscriber.d.ts index e575ec8e92c7020ab225d16d74a684702c034eba..904df95137d14446a4bd9f0cef13db6c3c5a38c3 100644 --- a/api/commonEvent/commonEventSubscriber.d.ts +++ b/api/commonEvent/commonEventSubscriber.d.ts @@ -28,7 +28,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ getCode(callback: AsyncCallback): void; @@ -36,7 +36,7 @@ export interface CommonEventSubscriber { * Obtains the result code of the current ordered common event. * * @since 7 - * @return Returns code of this common event + * @returns Returns code of this common event */ getCode(): Promise; @@ -46,7 +46,7 @@ export interface CommonEventSubscriber { * @since 7 * @param code Indicates the custom result code to set. You can set it to any value. * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ setCode(code: number, callback: AsyncCallback): void; @@ -55,7 +55,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param code Indicates the custom result code to set. You can set it to any value. - * @return - + * @returns - */ setCode(code: number): Promise; @@ -64,7 +64,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ getData(callback: AsyncCallback): void; @@ -72,8 +72,7 @@ export interface CommonEventSubscriber { * Obtains the result data of the current ordered common event. * * @since 7 - * @return - * @return Returns data of this common event + * @returns Returns data of this common event */ getData(): Promise; @@ -83,7 +82,7 @@ export interface CommonEventSubscriber { * @since 7 * @param data Indicates the custom result data to set. You can set it to any character string. * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ setData(data: string, callback: AsyncCallback): void; @@ -92,7 +91,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param data Indicates the custom result data to set. You can set it to any character string. - * @return - + * @returns - */ setData(data: string): Promise; @@ -103,7 +102,7 @@ export interface CommonEventSubscriber { * @param code Indicates the custom result code to set. You can set it to any value. * @param data Indicates the custom result data to set. You can set it to any character string. * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ setCodeAndData(code: number, data: string, callback: AsyncCallback): void; @@ -113,7 +112,7 @@ export interface CommonEventSubscriber { * @since 7 * @param code Indicates the custom result code to set. You can set it to any value. * @param data Indicates the custom result data to set. You can set it to any character string. - * @return - + * @returns - */ setCodeAndData(code: number, data: string): Promise; @@ -122,7 +121,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ isOrderedCommonEvent(callback: AsyncCallback): void; @@ -130,7 +129,7 @@ export interface CommonEventSubscriber { * Checks whether the current common event is an ordered common event. * * @since 7 - * @return Returns true if this common event is ordered, false otherwise + * @returns Returns true if this common event is ordered, false otherwise */ isOrderedCommonEvent(): Promise; @@ -139,7 +138,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ isStickyCommonEvent(callback: AsyncCallback): void; @@ -147,7 +146,7 @@ export interface CommonEventSubscriber { * Checks whether the current common event is a sticky common event. * * @since 7 - * @return Returns true if this common event is sticky, false otherwise + * @returns Returns true if this common event is sticky, false otherwise */ isStickyCommonEvent(): Promise; @@ -156,7 +155,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ abortCommonEvent(callback: AsyncCallback): void; @@ -164,7 +163,7 @@ export interface CommonEventSubscriber { * Abort the current ordered common event. * * @since 7 - * @return - + * @returns - */ abortCommonEvent(): Promise; @@ -173,7 +172,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ clearAbortCommonEvent(callback: AsyncCallback): void; @@ -181,7 +180,7 @@ export interface CommonEventSubscriber { * Clears the abort state of the current ordered common event * * @since 7 - * @return - + * @returns - */ clearAbortCommonEvent(): Promise; @@ -190,7 +189,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ getAbortCommonEvent(callback: AsyncCallback): void; @@ -198,7 +197,7 @@ export interface CommonEventSubscriber { * Checks whether the current ordered common event should be aborted. * * @since 7 - * @return Returns true if this common event is aborted, false otherwise + * @returns Returns true if this common event is aborted, false otherwise */ getAbortCommonEvent(): Promise; @@ -207,7 +206,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ getSubscribeInfo(callback: AsyncCallback): void; @@ -215,7 +214,7 @@ export interface CommonEventSubscriber { * get the CommonEventSubscribeInfo of this CommonEventSubscriber. * * @since 7 - * @return Returns the commonEvent subscribe information + * @returns Returns the commonEvent subscribe information */ getSubscribeInfo(): Promise; @@ -224,7 +223,7 @@ export interface CommonEventSubscriber { * * @since 9 * @param callback Indicate the callback function after the ordered common event is finished. - * @return - + * @returns - */ finishCommonEvent(callback: AsyncCallback): void; @@ -232,7 +231,7 @@ export interface CommonEventSubscriber { * finish the current ordered common event. * * @since 9 - * @return - + * @returns - */ finishCommonEvent(): Promise; }