Skip to content

Commit

Permalink
Fix type definitions for the selectTemplate option (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
stof authored Sep 25, 2021
1 parent 169e376 commit 2d281aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tributejs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export type TributeCollection<T extends {}> = {
itemClass?: string;

// function called on select that returns the content to insert
selectTemplate?: (item: TributeItem<T>) => string;
selectTemplate?: (item: TributeItem<T>|undefined) => string;

// template for displaying item in menu
menuItemTemplate?: (item: TributeItem<T>) => string;
Expand Down

0 comments on commit 2d281aa

Please sign in to comment.