Sobes.tech
Intern — Senior

Declaring a new type via enum

livecode

Task condition

Create a custom type using an enumeration.

enum TransactionState {
    'idle',
    'inProgress',
}

type Status
const currentStatus: Status = 'idle'