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