Skip to content

Commit

Permalink
renamed AppsResponse -> AppsList
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Dec 25, 2024
1 parent 0af2e3b commit 934a138
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions services/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<AppInfo> {
const appList = await asyncCall<AppsResponse>(getInstallerService(), 'luna://com.webos.applicationManager/dev/listApps', {});
const appList = await asyncCall<AppsList>(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;
Expand Down

0 comments on commit 934a138

Please sign in to comment.