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,