Skip to content

Commit

Permalink
fix(js): forward TData type to AutocompletePlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Feb 8, 2021
1 parent 48e7936 commit f62cb36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/autocomplete-js/src/types/AutocompletePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {

import { AutocompleteOptions } from './AutocompleteOptions';

export type AutocompletePlugin<TItem extends BaseItem> = Omit<
AutocompleteCorePlugin<TItem>,
export type AutocompletePlugin<TItem extends BaseItem, TData> = Omit<
AutocompleteCorePlugin<TItem, TData>,
'getSources'
> & {
getSources: AutocompleteOptions<TItem>['getSources'];
Expand Down

0 comments on commit f62cb36

Please sign in to comment.