Type Parameters
-
E extends number
-
K extends string
Constructors
constructor
- new default<E, K>(e: Record<K, E>, translator?: ((e: E) => default)): default<E, K>
-
Type Parameters
-
E extends number
-
K extends string
Parameters
-
e: Record<K, E>
-
Optional
translator: ((e: E) => default)
Methods
setSort
- setSort(sort: EnumSort | ((a: E, b: E) => number)): default<E, K>
-
Parameters
-
sort: EnumSort | ((a: E, b: E) => number)
setTranslator
- setTranslator(translator: ((e: E) => default)): default<E, K>
-
waitForChoice
- waitForChoice(): Promise<undefined | E>
-
Returns Promise<undefined | E>