UNPKG

@algolia/autocomplete-js

Version:

Fast and fully-featured autocomplete JavaScript library.

28 lines (27 loc) 830 B
/// <reference types="react" /> export declare type Pragma = (type: any, props: Record<string, any> | null, ...children: ComponentChildren[]) => JSX.Element; export declare type PragmaFrag = any; declare type ComponentChild = VNode<any> | object | string | number | boolean | null | undefined; declare type ComponentChildren = ComponentChild[] | ComponentChild; export declare type VNode<TProps = any> = { type: any; props: TProps & { children: ComponentChildren; key?: any; }; }; export declare type AutocompleteRenderer = { /** * The function to create virtual nodes. * * @default preact.createElement */ createElement: Pragma; /** * The component to use to create fragments. * * @default preact.Fragment */ Fragment: PragmaFrag; }; export {};