From 4a6c3cbaac9690f1261b8d435195878b6f60ad64 Mon Sep 17 00:00:00 2001 From: Ruben Robles Date: Mon, 20 Sep 2021 11:02:40 +0200 Subject: [PATCH] fix: Add type for async items on suggestions (fix TS strict types complaining) (#1912) --- packages/suggestion/src/suggestion.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/suggestion/src/suggestion.ts b/packages/suggestion/src/suggestion.ts index 154b456c2..a5d780b80 100644 --- a/packages/suggestion/src/suggestion.ts +++ b/packages/suggestion/src/suggestion.ts @@ -17,7 +17,7 @@ export interface SuggestionOptions { range: Range, props: any, }) => void, - items?: (query: string) => any[], + items?: (query: string) => any[] | Promise, render?: () => { onStart?: (props: SuggestionProps) => void, onUpdate?: (props: SuggestionProps) => void,