UNPKG

@arteneo/forge

Version:
17 lines (16 loc) 588 B
import OptionInterface from "../components/Form/definitions/OptionInterface"; import OptionsType from "../components/Form/definitions/OptionsType"; type EnumType = string; declare class Enum { enums: EnumType[]; prefix: string; invalidLabel: string; constructor(enums: EnumType[], prefix: string, invalidLabel?: string); getEnums(): EnumType[]; getOptions(): OptionsType; getOption(enumName: EnumType): undefined | OptionInterface; getLabel(enumName: EnumType): string; isValid(enumName: EnumType): boolean; } export default Enum; export { EnumType };