UNPKG

@grafana/ui

Version:
10 lines (9 loc) 596 B
import { type SelectableValue } from '@grafana/data'; import { type ComboboxOption } from './types'; export declare const isNewGroup: <T extends string | number>(option: ComboboxOption<T>, prevOption?: ComboboxOption<T>) => boolean; /** * returns a ComboboxOption from a SelectableValue, or undefined if it could not be converted. * @param v - The SelectableValue to convert. * @returns The ComboboxOption, or undefined if it could not be converted. */ export declare const selectableValueToComboboxOption: <T extends string | number>(v: SelectableValue<T>) => ComboboxOption<T> | undefined;