diff --git a/api/@ohos.notification.d.ts b/api/@ohos.notification.d.ts index de8c1ae964c8f72e7c88fe2137b74e05d63fd643..2c3d321c3ed562ad363c86059c3113851d1105a6 100644 --- a/api/@ohos.notification.d.ts +++ b/api/@ohos.notification.d.ts @@ -47,7 +47,6 @@ import { NotificationUserInput as _NotificationUserInput } from './notification/ * @name notification * @since 7 * @syscap SystemCapability.Notification.Notification - * @import import notification from '@ohos.notification'; * @permission N/A * @deprecated since 9 * @useinstead ohos.notificationManager and ohos.notificationSubscribe diff --git a/api/@ohos.reminderAgentManager.d.ts b/api/@ohos.reminderAgentManager.d.ts index b96875149f9c98207c5f5dee9f2d5c8fd1e62060..b66b9fbac3509cee5a9cca3f794a6dfa33abe2c7 100644 --- a/api/@ohos.reminderAgentManager.d.ts +++ b/api/@ohos.reminderAgentManager.d.ts @@ -23,7 +23,6 @@ import { NotificationSlot } from './notification/notificationSlot'; * * @since 9 * @syscap SystemCapability.Notification.ReminderAgent - * @import reminderAgentManager from '@ohos.reminderAgentManager'; */ declare namespace reminderAgentManager { /** diff --git a/api/commonEvent/commonEventSubscriber.d.ts b/api/commonEvent/commonEventSubscriber.d.ts index c9e1beb8d710bd6dd866f2d14e4f61d718c9a453..128dfb42e8127fe579e736cc86aa4acee8718790 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; @@ -73,7 +73,7 @@ export interface CommonEventSubscriber { * * @since 7 * @return - * @return Returns data of this common event + * @returns Returns data of this common event */ getData(): Promise; @@ -83,7 +83,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 +92,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 +103,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 +113,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 +122,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 +130,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 +139,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 +147,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 +156,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 +164,7 @@ export interface CommonEventSubscriber { * Aborts the current ordered common event. * * @since 7 - * @return - + * @returns - */ abortCommonEvent(): Promise; @@ -173,7 +173,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 +181,7 @@ export interface CommonEventSubscriber { * Clears the abort state of the current ordered common event * * @since 7 - * @return - + * @returns - */ clearAbortCommonEvent(): Promise; @@ -190,7 +190,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 +198,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 +207,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 +215,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 +224,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 +232,7 @@ export interface CommonEventSubscriber { * finish the current ordered common event. * * @since 9 - * @return - + * @returns - */ finishCommonEvent(): Promise; }