UNPKG

bootstrap-vue-next

Version:

Seamless integration of Vue 3, Bootstrap 5, and TypeScript for modern, type-safe UI development

16 lines (15 loc) 540 B
export type SelectValue = boolean | string | readonly unknown[] | Readonly<Record<string, unknown>> | number | null; export interface SelectOption<T = unknown> { value: T; text?: string; disabled?: boolean; } export type SelectOptionRaw<T = unknown> = string | SelectOption<T>; export type ComplexSelectOption<T = unknown> = Readonly<{ label: string; options: readonly SelectOption<T>[]; }>; export type ComplexSelectOptionRaw<T = unknown> = Readonly<{ label: string; options: readonly SelectOptionRaw<T>[]; }>;