We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79c8849 commit eeb1c32Copy full SHA for eeb1c32
1 file changed
examples/playground/categoriesPlugin.tsx
@@ -6,22 +6,18 @@ import {
6
import { SearchClient } from 'algoliasearch/lite';
7
import { h, Fragment } from 'preact';
8
9
-import { Highlighted } from './types';
10
-
11
type CategoryRecord = {
12
label: string;
13
count: number;
14
};
15
16
-type CategoryHit = Highlighted<CategoryRecord>;
17
18
type CreateCategoriesPluginProps = {
19
searchClient: SearchClient;
20
21
22
export function createCategoriesPlugin({
23
searchClient,
24
-}: CreateCategoriesPluginProps): AutocompletePlugin<CategoryHit, undefined> {
+}: CreateCategoriesPluginProps): AutocompletePlugin<CategoryRecord, undefined> {
25
return {
26
getSources({ query }) {
27
return [
0 commit comments