From f528b73c50388b9cf5536ed2915d80e3d0e38198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rube=CC=81n=20Robles?= Date: Mon, 20 Sep 2021 10:57:32 +0200 Subject: [PATCH] Add type for async items on suggestions (fix TS strict types complaining) --- 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 154b456c230..a5d780b807b 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,