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