UNPKG

@ansible/ansible-ui-framework

Version:

A framework for building applications using PatternFly.

14 lines (13 loc) 539 B
import { PageSelectOption } from './PageSelectOption'; export type PageAsyncSelectOptionsFn<ValueT> = (queryOptions: PageAsyncSelectQueryOptions) => Promise<PageAsyncSelectQueryResult<ValueT>>; export interface PageAsyncSelectQueryOptions { next?: string | number; search?: string; signal: AbortSignal; } export interface PageAsyncSelectQueryResult<ValueT> { remaining: number; options: PageSelectOption<ValueT>[]; next: string | number; } export type PageAsyncQueryErrorText = string | ((error: Error) => string);