From 934a138e05dd9bca1766261cd19e0a498ae31233 Mon Sep 17 00:00:00 2001 From: Ningyuan Li Date: Wed, 25 Dec 2024 16:36:33 +0900 Subject: [PATCH] renamed AppsResponse -> AppsList --- services/service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services/service.ts b/services/service.ts index db9ca59..2835ccf 100644 --- a/services/service.ts +++ b/services/service.ts @@ -413,9 +413,11 @@ function runService(): void { type: string; folderPath: string; } - type AppsResponse = { apps: AppInfo[] }; + interface AppsList { + apps: AppInfo[]; + } async function getAppInfo(appId: string): Promise { - const appList = await asyncCall(getInstallerService(), 'luna://com.webos.applicationManager/dev/listApps', {}); + const appList = await asyncCall(getInstallerService(), 'luna://com.webos.applicationManager/dev/listApps', {}); const appInfo = appList.apps.find((app) => app.id === appId); if (!appInfo) throw new Error(`Invalid appId, or unsupported application type: ${appId}`); return appInfo;