svelte-algolia-instantsearch
Version:
Svelte wrapper for Algolia InstantSearch
41 lines (40 loc) • 1.33 kB
TypeScript
import { SvelteComponentTyped } from "svelte";
export type HighlightClassNames = {
/**
* Class names to apply to the root element
*/
root: string;
/**
* Class names to apply to the highlighted parts
*/
highlighted: string;
/**
* Class names to apply to the non-highlighted parts
*/
nonHighlighted: string;
/**
* Class names to apply to the separator between highlighted parts
*/
separator: string;
};
import type { HitHighlightResult, HitSnippetResult } from "instantsearch.js";
declare const __propDef: {
props: {
classes: HighlightClassNames;
attribute: string;
result: HitHighlightResult | HitSnippetResult | undefined;
highlightedTagName?: keyof HTMLElementTagNameMap | undefined;
nonHighlightedTagName?: keyof HTMLElementTagNameMap | undefined;
separator?: string | undefined;
};
events: {
[evt: string]: CustomEvent<any>;
};
slots: {};
};
export type InternalHighlightProps = typeof __propDef.props;
export type InternalHighlightEvents = typeof __propDef.events;
export type InternalHighlightSlots = typeof __propDef.slots;
export default class InternalHighlight extends SvelteComponentTyped<InternalHighlightProps, InternalHighlightEvents, InternalHighlightSlots> {
}
export {};