From 24334189f82171d780ab141c57270a28712816db Mon Sep 17 00:00:00 2001 From: wangtong Date: Mon, 28 Nov 2022 10:02:46 +0800 Subject: [PATCH 1/2] fixed 529b320 from https://gitee.com/wTong6/interface_sdk-js_1/pulls/3549 modift time d.ts Signed-off-by: wangtong --- api/@ohos.systemTime.d.ts | 1 - api/@ohos.systemTimer.d.ts | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/api/@ohos.systemTime.d.ts b/api/@ohos.systemTime.d.ts index ef8856074d..5dd7adc887 100755 --- a/api/@ohos.systemTime.d.ts +++ b/api/@ohos.systemTime.d.ts @@ -19,7 +19,6 @@ import { AsyncCallback, ErrorCallback } from './basic'; * System time and timezone. * @since 7 * @syscap SystemCapability.MiscServices.Time - * @import systemTime from '@ohos.systemTime'; */ declare namespace systemTime { /** diff --git a/api/@ohos.systemTimer.d.ts b/api/@ohos.systemTimer.d.ts index 023a3f2644..eb5ba05b9b 100644 --- a/api/@ohos.systemTimer.d.ts +++ b/api/@ohos.systemTimer.d.ts @@ -46,8 +46,8 @@ declare namespace systemTimer { /** * Creates a timer. - * @Param options Indicates the timer options. - * @Return timer ID. + * @param options Indicates the timer options. + * @returns timer ID. */ function createTimer(options: TimerOptions, callback: AsyncCallback): void; function createTimer(options: TimerOptions): Promise; @@ -55,8 +55,8 @@ declare namespace systemTimer { /** * Starts a timer. * - * @Param timer The timer ID. - * @Param triggerTime Indicates the time at which the timer is triggered for the first time, in milliseconds. + * @param timer The timer ID. + * @param triggerTime Indicates the time at which the timer is triggered for the first time, in milliseconds. * The time will be automatically set to 5000 milliseconds after the current time if the passed * value is smaller than the current time plus 5000 milliseconds. */ @@ -65,14 +65,14 @@ declare namespace systemTimer { /** * Stops a timer. - * @Param timer The timer ID. + * @param timer The timer ID. */ function stopTimer(timer: number, callback: AsyncCallback): void; function stopTimer(timer: number): Promise; /** * Destroy a timer. - * @Param timer The timer ID. + * @param timer The timer ID. */ function destroyTimer(timer: number, callback: AsyncCallback): void; function destroyTimer(timer: number): Promise; -- Gitee From 813637d6bccee64c0823ebe08dc44c383f0b864f Mon Sep 17 00:00:00 2001 From: wTong888 Date: Mon, 28 Nov 2022 14:22:48 +0000 Subject: [PATCH 2/2] update api/@ohos.systemTimer.d.ts. Signed-off-by: wTong888 --- api/@ohos.systemTimer.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.systemTimer.d.ts b/api/@ohos.systemTimer.d.ts index eb5ba05b9b..3f7a44dd8e 100644 --- a/api/@ohos.systemTimer.d.ts +++ b/api/@ohos.systemTimer.d.ts @@ -47,7 +47,7 @@ declare namespace systemTimer { /** * Creates a timer. * @param options Indicates the timer options. - * @returns timer ID. + * @returns {void | Promise} timer ID. */ function createTimer(options: TimerOptions, callback: AsyncCallback): void; function createTimer(options: TimerOptions): Promise; -- Gitee