SudoSOS Back-end API / helpers / asOrderingDirection
Function: asOrderingDirection() ​
ts
function asOrderingDirection(input?): OrderingDirection;Convert the given input to an OrderingDirection object or undefined if correct. Throw error otherwise
Parameters ​
| Parameter | Type | Description |
|---|---|---|
input? | any | - |
Returns ​
Throws ​
TypeError input not a valid OrderingDirection