bootstrap-vue-next
Version:
BootstrapVueNext is an early and lovely component library for Vue 3 & Nuxt 3 based on Bootstrap 5 and Typescript.
16 lines (15 loc) • 540 B
TypeScript
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>[];
}>;