Files
start-os/web/projects/ui/src/app/util/has-deps.ts
2024-03-21 17:21:37 -06:00

9 lines
249 B
TypeScript

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