Skip to main content

Function: parseFacilityStatuses()

parseFacilityStatuses(raw): ("active" | "prospect" | "inactive")[]

Defined in: src/lib/facility/status.ts:21

Parse the status query param into the set of statuses to show. Absent/empty/invalid → the default of ['active'], so the list opens on active clients. Order follows FACILITY_STATUSES.

Parameters

raw

string | string[] | undefined

Returns

("active" | "prospect" | "inactive")[]