Type guard that narrows a string to FacilityType when it matches a member of FACILITY_TYPES.
Useful when consuming external strings (URL params, config files, MCP tool inputs) that should be validated before being used as a facility type.
The string to test.
true if value is a valid FacilityType.
true
value
FacilityType
Type guard that narrows a string to FacilityType when it matches a member of FACILITY_TYPES.
Useful when consuming external strings (URL params, config files, MCP tool inputs) that should be validated before being used as a facility type.