export type OptionCommon = { label: string } export type Option = OptionCommon & { created?: boolean value: T // reserve for option [prop: string]: any } export type OptionGroup = OptionCommon & { options: Array // reserve for flexibility [prop: string]: any } export type OptionType = Option | OptionGroup // maybe adding T for type restriction is better here, but not sure this is going to work for // template rendering export type OptionItemProps = { item: any index: number disabled: boolean }