mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2025-12-17 14:05:12 +00:00
19 lines
484 B
TypeScript
19 lines
484 B
TypeScript
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 | Array<string | number>;
|
|
/**
|
|
* The tag name to use for highlighted parts.
|
|
*
|
|
* @default "mark"
|
|
*/
|
|
tagName?: string;
|
|
};
|