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