!3581 modify returns

Merge pull request !3581 from wTong888/master
This commit is contained in:
openharmony_ci 2022-11-29 06:32:42 +00:00 committed by Gitee
commit bccb9c6015
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -47,7 +47,7 @@ declare namespace systemTimer {
/**
* Creates a timer.
* @param options Indicates the timer options.
* @returns timer ID.
* @returns {void | Promise<number>} timer ID.
*/
function createTimer(options: TimerOptions, callback: AsyncCallback<number>): void;
function createTimer(options: TimerOptions): Promise<number>;