Skip to content

Commit

Permalink
✨ make getListItem a Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
castroCrea committed May 16, 2024
1 parent 1bb7a5b commit 0a6f2f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface PluginMentionItem {
allowSpaces: boolean;
getListItem: ({ query }: {
query: string;
}) => MentionItem[];
}) => Promise<MentionItem[]>;
onSelectItem: (props: {
item: MentionItem;
setContext: (context: Context) => void;
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface PluginMentionItem {
allowSpaces: boolean
getListItem: ({ query }: {
query: string
}) => MentionItem[]
}) => Promise<MentionItem[]>
onSelectItem: (props: {
item: MentionItem
setContext: (context: Context) => void
Expand Down

0 comments on commit 0a6f2f7

Please sign in to comment.