Skip to content

SudoSOS Back-end API / helpers / asUserType

Function: asUserType() ​

ts
function asUserType(input): UserType;

Converts the input to a UserType

Parameters ​

ParameterTypeDescription
inputanyThe input which should be converted.

Returns ​

UserType

The parsed UserType as a number representation.

Throws ​

TypeError - If the input is not a valid UserType