From 47ac5fd6563acd8d5f778f43b56adeac479e51bb Mon Sep 17 00:00:00 2001 From: 189******51 Date: Tue, 5 Sep 2023 08:12:57 +0000 Subject: [PATCH] update zh-cn/application-dev/quick-start/atomicService-aging.md. Signed-off-by: 189******51 --- zh-cn/application-dev/quick-start/atomicService-aging.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/quick-start/atomicService-aging.md b/zh-cn/application-dev/quick-start/atomicService-aging.md index c19291c7e2..116a2feb1b 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 { -- GitLab