Files
start-os/frontend/projects/ui/src/app/util/has-deps.ts
2022-07-25 12:05:44 -06:00

8 lines
262 B
TypeScript

import { PackageDataEntry } from '../services/patch-db/data-model'
export function hasCurrentDeps(pkg: PackageDataEntry): boolean {
return !!Object.keys(pkg.installed?.['current-dependents'] || {}).filter(
depId => depId !== pkg.manifest.id,
).length
}