bootstrap-vue-next
Version:
Seamless integration of Vue 3, Bootstrap 5, and TypeScript for modern, type-safe UI development
16 lines (15 loc) • 614 B
text/typescript
import { MaybeRefOrGetter } from 'vue';
import { ComplexSelectOptionRaw, SelectOption } from '../types';
export declare const useFormSelect: (options: MaybeRefOrGetter<ReadonlyArray<unknown>>, props: MaybeRefOrGetter<{
valueField: string;
textField: string;
disabledField: string;
optionsField?: string;
labelField?: string;
}>) => {
normalizedOptions: import('vue').ComputedRef<(SelectOption<unknown> | Readonly<{
label: string;
options: readonly import('..').SelectOptionRaw<unknown>[];
}>)[]>;
isComplex: (option: unknown) => option is ComplexSelectOptionRaw;
};