UNPKG

@algolia/autocomplete-js

Version:

Fast and fully-featured autocomplete JavaScript library.

19 lines (18 loc) 470 B
export declare type HighlightHitParams<THit> = { /** * The Algolia hit whose attribute to retrieve the highlighted parts from. */ hit: THit; /** * The attribute to retrieve the highlighted parts from. * * You can use the array syntax to reference nested attributes. */ attribute: keyof THit | string[]; /** * The tag name to use for highlighted parts. * * @default "mark" */ tagName?: string; };