From 0a6f2f725ddfae05716abdc07f0c2f377255b14b Mon Sep 17 00:00:00 2001 From: Castro Crea Date: Thu, 16 May 2024 11:38:17 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20make=20getListItem=20a=20Promise?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/types.d.ts | 2 +- src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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