UNPKG

@opra/common

Version:
16 lines (15 loc) 480 B
import type { StrictOmit } from 'ts-gems'; import type { DataType, DataTypeBase } from './data-type.interface.js'; export interface EnumType extends StrictOmit<DataTypeBase, 'kind'> { kind: EnumType.Kind; base?: DataType.Name; attributes: Record<string | number, EnumType.ValueInfo>; } export declare namespace EnumType { const Kind = "EnumType"; type Kind = typeof Kind; interface ValueInfo { alias?: string; description?: string; } }