Skip to content

SudoSOS Back-end API / helpers / asShiftAvailability

Function: asShiftAvailability() ​

ts
function asShiftAvailability(input): Availability;

Converts the input to a shift availability

Parameters ​

ParameterTypeDescription
inputanyThe input which should be converted.

Returns ​

Availability

The parsed shift Availability.

Throws ​

TypeError - If the input is not a valid Availability