Skip to content

SudoSOS Back-end API / helpers / asEventType

Function: asEventType() ​

ts
function asEventType(input): EventType;

Converts the input to an EventType

Parameters ​

ParameterTypeDescription
inputanyThe input which should be converted.

Returns ​

EventType

The parsed EventType.

Throws ​

TypeError - If the input is not a valid EventType