Skip to content

Commit eeb1c32

Browse files
committed
Fix types
1 parent 79c8849 commit eeb1c32

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

examples/playground/categoriesPlugin.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,18 @@ import {
66
import { SearchClient } from 'algoliasearch/lite';
77
import { h, Fragment } from 'preact';
88

9-
import { Highlighted } from './types';
10-
119
type CategoryRecord = {
1210
label: string;
1311
count: number;
1412
};
1513

16-
type CategoryHit = Highlighted<CategoryRecord>;
17-
1814
type CreateCategoriesPluginProps = {
1915
searchClient: SearchClient;
2016
};
2117

2218
export function createCategoriesPlugin({
2319
searchClient,
24-
}: CreateCategoriesPluginProps): AutocompletePlugin<CategoryHit, undefined> {
20+
}: CreateCategoriesPluginProps): AutocompletePlugin<CategoryRecord, undefined> {
2521
return {
2622
getSources({ query }) {
2723
return [

0 commit comments

Comments
 (0)