mirror of
https://github.com/stablyai/orca.git
synced 2026-10-22 08:03:37 +00:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user