!10 添加cancel的d.ts文件

Merge pull request !10 from 钟柠/sdk-js-0702
This commit is contained in:
openharmony_ci 2021-07-08 01:48:00 +00:00 committed by Gitee
commit fb8a584d93

View File

@ -405,6 +405,13 @@ declare namespace update {
off(eventType: 'downloadProgress', callback?: UpdateProgressCallback): void;
off(eventType: 'upgradeProgress', callback?: UpdateProgressCallback): void;
off(eventType: 'verifyProgress', callback?: UpdateProgressCallback): void;
/**
* cancel download packages for the device.
*
* @since 6
*/
cancel(): void;
}
export type UpdateTypes =