mirror of
https://github.com/imezx/Warp.git
synced 2025-04-24 23:20:02 +00:00
14 lines
734 B
TypeScript
14 lines
734 B
TypeScript
|
import { BaseItem } from '../core';
|
|||
|
import { AutocompletePlugin as AutocompleteCorePlugin } from '../core/AutocompletePlugin';
|
|||
|
import { AutocompleteOptions } from './AutocompleteOptions';
|
|||
|
export declare type AutocompletePlugin<TItem extends BaseItem, TData> = Omit<AutocompleteCorePlugin<TItem, TData>, 'getSources'> & {
|
|||
|
/**
|
|||
|
* The [sources](https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/) to get the suggestions from.
|
|||
|
*
|
|||
|
* When defined, they’re merged with the sources of your Autocomplete instance.
|
|||
|
*
|
|||
|
* @link https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/plugins/#param-getsources
|
|||
|
*/
|
|||
|
getSources?: AutocompleteOptions<TItem>['getSources'];
|
|||
|
};
|