Files
start-os/web/projects/ui/src/app/utils/has-deps.ts
2024-04-09 12:45:47 +07:00

9 lines
250 B
TypeScript

import { PackageDataEntry } from 'src/app/services/patch-db/data-model'
export function hasCurrentDeps(
id: string,
pkgs: Record<string, PackageDataEntry>,
): boolean {
return !!Object.values(pkgs).some(pkg => !!pkg.currentDependencies[id])
}