svelte-meilisearch-instantsearch
Version:
Svelte wrapper for Meilisearch InstantSearch
91 lines (90 loc) • 3.55 kB
TypeScript
import { SvelteComponentTyped } from "svelte";
declare const __propDef: {
props: {
escapeHTML?: boolean | undefined;
showPrevious?: boolean | undefined;
transformItems?: import("instantsearch.js").TransformItems<import("instantsearch.js").Hit<import("instantsearch.js").BaseHit>> | undefined;
cache?: import("instantsearch.js/es/connectors/infinite-hits/connectInfiniteHits").InfiniteHitsCache<import("instantsearch.js").BaseHit> | undefined;
classes?: Partial<{
/**
* Class names to apply to the root element
*/
root: string;
/**
* Class names to apply to the root element without results
*/
emptyRoot: string;
/**
* Class names to apply to the "load previous" button
*/
loadPrevious: string;
/**
* Class names to apply to the "load previous" button when it's disabled
*/
disabledLoadPrevious: string;
/**
* Class names to apply to the "load more" button
*/
loadMore: string;
/**
* Class names to apply to the "load more" button when it's disabled
*/
disabledLoadMore: string;
/**
* Class names to apply to the list element
*/
list: string;
/**
* Class names to apply to each item element
*/
item: string;
}> | undefined;
translations?: Partial<{
showPreviousButtonText: string;
showMoreButtonText: string;
}> | undefined;
};
events: {
[evt: string]: CustomEvent<any>;
};
slots: {
default: {
hit: {
__position: number;
__queryID?: string | undefined;
} & {
objectID: string;
_highlightResult?: import("instantsearch.js").HitHighlightResult | undefined;
_snippetResult?: import("instantsearch.js").HitSnippetResult | undefined;
_rankingInfo?: {
promoted: boolean;
nbTypos: number;
firstMatchedWord: number;
proximityDistance?: number | undefined; /**
* Class names to apply to each item element
*/
geoDistance: number;
geoPrecision?: number | undefined;
nbExactWords: number;
words: number;
filters: number;
userScore: number;
matchedGeoLocation?: {
lat: number;
lng: number;
distance: number;
} | undefined;
} | undefined;
_distinctSeqID?: number | undefined;
_geoloc?: import("instantsearch.js").GeoLoc | undefined;
} & import("instantsearch.js").BaseHit & Record<string, any>;
sendEvent: import("instantsearch.js/es/lib/utils").SendEventForHits;
};
};
};
export type InfiniteHitsProps = typeof __propDef.props;
export type InfiniteHitsEvents = typeof __propDef.events;
export type InfiniteHitsSlots = typeof __propDef.slots;
export default class InfiniteHits extends SvelteComponentTyped<InfiniteHitsProps, InfiniteHitsEvents, InfiniteHitsSlots> {
}
export {};