Skip to content

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 ​

ParameterTypeDescription
input?any-

Returns ​

OrderingDirection

Throws ​

TypeError input not a valid OrderingDirection