type(shared): return readonly setups from getProjectHostSetupsForProject

The helper already takes a readonly catalog and returns a filter subset.
Mark the return readonly so callers cannot mutate a live setups array.

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Neil
2026-08-13 00:18:58 -07:00
co-authored by Orca
parent 2ae61e6721
commit 6fa29d93bb
+1 -1
View File
@@ -298,7 +298,7 @@ export function projectHostSetupProjectionFromRepos(
export function getProjectHostSetupsForProject(
setups: readonly ProjectHostSetup[],
projectId: string
): ProjectHostSetup[] {
): readonly ProjectHostSetup[] {
return setups.filter((setup) => setup.projectId === projectId)
}