SudoSOS Back-end API / helpers / asShiftAvailability
Function: asShiftAvailability() ​
ts
function asShiftAvailability(input): Availability;Converts the input to a shift availability
Parameters ​
| Parameter | Type | Description |
|---|---|---|
input | any | The input which should be converted. |
Returns ​
The parsed shift Availability.
Throws ​
TypeError - If the input is not a valid Availability