UNPKG

@1771technologies/lytenyte-pro

Version:

Blazingly fast headless React data grid with 100s of features.

9 lines (8 loc) 359 B
import type { BaseOption } from "./type"; export interface ComboOptionState<T extends BaseOption> { loading: boolean; error: unknown; options: T[]; loadOptions: (query: any) => void; } export declare function useAsyncOptions<T extends BaseOption>(p: null | ((query: string) => Promise<T[]> | T[]), clearOnQuery: boolean): ComboOptionState<T>;