@shopify/cli-kit
    Preparing search index...

    Interface RenderAutocompleteOptions<T>

    interface RenderAutocompleteOptions<T> {
        abortSignal?: AbortSignal;
        choices: Item<T>[];
        groupOrder?: string[];
        hasMorePages?: boolean;
        infoMessage?: {
            body: TokenItem;
            title: {
                color?: LiteralUnion<(keyof ForegroundColor), string>;
                text: TokenItem<
                    | string
                    | { command: string }
                    | { char: string }
                    | { subdued: string }
                    | { filePath: string }
                    | BoldToken
                    | { info: string }
                    | { warn: string }
                    | { error: string },
                >;
            };
        };
        infoTable?: Record<string, Items>
        | InfoTableSection[];
        message: Message;
        renderOptions?: RenderOptions;
        search?: (term: string) => Promise<SearchResults<T>>;
    }

    Type Parameters

    • T

    Hierarchy

    • PartialBy<Omit<AutocompletePromptProps<T>, "onSubmit">, "search">
      • RenderAutocompleteOptions
    Index

    Properties

    abortSignal?: AbortSignal
    choices: Item<T>[]
    groupOrder?: string[]
    hasMorePages?: boolean
    infoMessage?: {
        body: TokenItem;
        title: {
            color?: LiteralUnion<(keyof ForegroundColor), string>;
            text: TokenItem<
                | string
                | { command: string }
                | { char: string }
                | { subdued: string }
                | { filePath: string }
                | BoldToken
                | { info: string }
                | { warn: string }
                | { error: string },
            >;
        };
    }
    infoTable?: Record<string, Items> | InfoTableSection[]
    message: Message
    renderOptions?: RenderOptions
    search?: (term: string) => Promise<SearchResults<T>>