The TypeScript enum to enumerate.
The processed enumeration to be used by the Model.
enumerate a TypeScript enumeration:
import { enumerate } from '@sgrud/data';
enum Enumeration {
One = 'ONE',
Two = 'TWO'
}
export type ExampleEnum = Enumeration;
export const ExampleEnum = enumerate(Enumeration);
Generated using TypeDoc
enumerate helper function. Enumerations are special objects and all used TypeScript
enums have to be looped through this helper function before they can be utilized in conjunction with the Model.