Skip to content

SudoSOS Back-end API / helpers / asDinero

Function: asDinero() ​

ts
function asDinero(input): Dinero;

Converts the input to a Dinero object.

Parameters ​

ParameterTypeDescription
inputanyThe input which should be converted.

Returns ​

Dinero

The parsed dinero object.

Throws ​

TypeError - If the input is not a valid integer.