diff --git a/dist/types.d.ts b/dist/types.d.ts index a4ac94f..34c2657 100644 --- a/dist/types.d.ts +++ b/dist/types.d.ts @@ -10,7 +10,7 @@ export interface PluginMentionItem { allowSpaces: boolean; getListItem: ({ query }: { query: string; - }) => MentionItem[]; + }) => Promise; onSelectItem: (props: { item: MentionItem; setContext: (context: Context) => void; diff --git a/src/types.ts b/src/types.ts index b29a800..66c46e5 100644 --- a/src/types.ts +++ b/src/types.ts @@ -12,7 +12,7 @@ export interface PluginMentionItem { allowSpaces: boolean getListItem: ({ query }: { query: string - }) => MentionItem[] + }) => Promise onSelectItem: (props: { item: MentionItem setContext: (context: Context) => void