diff --git a/zh-cn/application-dev/quick-start/atomicService-aging.md b/zh-cn/application-dev/quick-start/atomicService-aging.md index c19291c7e2bfdcf43e752d3aa33bbefe820120ba..116a2feb1b77dae8a9d26965546c2c20e286d5a6 100644 --- a/zh-cn/application-dev/quick-start/atomicService-aging.md +++ b/zh-cn/application-dev/quick-start/atomicService-aging.md @@ -17,14 +17,15 @@ ```ts import installer from '@ohos.bundle.installer'; import { BusinessError } from '@ohos.base'; + let bundleName = 'com.ohos.demo'; let installParam: installer.InstallParam = { userId: 100 }; try { - installer.getBundleInstaller().then(data => { - data.uninstall(bundleName, installParam, err => { + installer.getBundleInstaller().then((data: installer.BundleInstaller) => { + data.uninstall(bundleName, installParam, (err: BusinessError) => { if (err) { console.error('uninstall failed:' + err.message); } else {