From 0bc1d1e37419b04149f5b2a8a4ddffdf5626aa67 Mon Sep 17 00:00:00 2001 From: liuyanzhi Date: Mon, 21 Mar 2022 11:44:36 +0800 Subject: [PATCH] add sdk fix Signed-off-by: liuyanzhi Change-Id: I327f9408183250e42a3e9124e82b80237f7c2a35 --- api/@ohos.ability.featureAbility.d.ts | 3 ++- api/@ohos.commonEvent.d.ts | 15 ++++++++------- api/@ohos.data.dataAbility.d.ts | 3 ++- api/ability/abilityResult.d.ts | 3 ++- api/ability/connectOptions.d.ts | 3 ++- api/ability/startAbilityParameter.d.ts | 3 ++- api/notification/notificationContent.d.ts | 3 ++- 7 files changed, 20 insertions(+), 13 deletions(-) diff --git a/api/@ohos.ability.featureAbility.d.ts b/api/@ohos.ability.featureAbility.d.ts index cff1e71e38..37fa892972 100644 --- a/api/@ohos.ability.featureAbility.d.ts +++ b/api/@ohos.ability.featureAbility.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { AsyncCallback } from './basic'; import { Callback } from './basic'; import { Want } from './ability/want'; diff --git a/api/@ohos.commonEvent.d.ts b/api/@ohos.commonEvent.d.ts index f6a59b218e..d27614eefb 100644 --- a/api/@ohos.commonEvent.d.ts +++ b/api/@ohos.commonEvent.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { AsyncCallback } from './basic'; import { CommonEventData } from './commonEvent/commonEventData'; import { CommonEventSubscriber } from './commonEvent/commonEventSubscriber'; @@ -19,7 +20,7 @@ import { CommonEventSubscribeInfo } from './commonEvent/commonEventSubscribeInfo import { CommonEventPublishData } from './commonEvent/commonEventPublishData'; /** - * the defination for commonevent + * Common event defination * @name commonEvent * @since 7 * @syscap SystemCapability.Notification.CommonEvent @@ -66,7 +67,7 @@ declare namespace commonEvent { * @since 8 * @param event Specified the names of the common events. * @param userId Specified the user to receive the common events. - * @param options Indicate the CommonEventPublishData containing the common event content and attributes. + * @param options Indicates the CommonEventPublishData containing the common event content and attributes. * @param callback Specified callback method. * @return - * @@ -75,10 +76,10 @@ declare namespace commonEvent { function publishAsUser(event: string, userId: number, options: CommonEventPublishData, callback: AsyncCallback): void; /** - * create the CommonEventSubscriber for the SubscriberInfo. + * creates a CommonEventSubscriber for the SubscriberInfo. * * @since 7 - * @param subscribeInfo Indicate the information of the subscriber. + * @param subscribeInfo Indicates the information of the subscriber. * @param callback Specified callback method. * @return - */ @@ -88,7 +89,7 @@ declare namespace commonEvent { * create the CommonEventSubscriber for the SubscriberInfo. * * @since 7 - * @param subscribeInfo Indicate the information of the subscriber. + * @param subscribeInfo Indicates the information of the subscriber. * @return Returns common event subscriber object */ function createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise; @@ -104,7 +105,7 @@ declare namespace commonEvent { function subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback): void; /** - * unsubscribe an ordered, sticky, or standard common event. + * unsubscribe from an ordered, sticky, or standard common event. * * @since 7 * @param subscriber Indicate the subscriber of the common event. diff --git a/api/@ohos.data.dataAbility.d.ts b/api/@ohos.data.dataAbility.d.ts index 260afab404..eed66ea28f 100644 --- a/api/@ohos.data.dataAbility.d.ts +++ b/api/@ohos.data.dataAbility.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { AsyncCallback } from './basic'; import rdb from './@ohos.data.rdb'; diff --git a/api/ability/abilityResult.d.ts b/api/ability/abilityResult.d.ts index 253243e97f..ff526237be 100644 --- a/api/ability/abilityResult.d.ts +++ b/api/ability/abilityResult.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Want } from './want'; /** diff --git a/api/ability/connectOptions.d.ts b/api/ability/connectOptions.d.ts index 0ba5280c1d..4c428b4903 100644 --- a/api/ability/connectOptions.d.ts +++ b/api/ability/connectOptions.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { ElementName } from '../bundle/elementName'; import rpc from './../@ohos.rpc'; diff --git a/api/ability/startAbilityParameter.d.ts b/api/ability/startAbilityParameter.d.ts index a2a65148da..21857f260e 100644 --- a/api/ability/startAbilityParameter.d.ts +++ b/api/ability/startAbilityParameter.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { Want } from './want'; /** diff --git a/api/notification/notificationContent.d.ts b/api/notification/notificationContent.d.ts index c657856e9b..b50b426a0f 100644 --- a/api/notification/notificationContent.d.ts +++ b/api/notification/notificationContent.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -15,6 +15,7 @@ import notification from '../@ohos.notification'; import image from './@ohos.multimedia.image'; + /** * Describes a normal text notification. * -- Gitee