fix: Add type for async items on suggestions (fix TS strict types complaining) (#1912)
This commit is contained in:
@@ -17,7 +17,7 @@ export interface SuggestionOptions {
|
||||
range: Range,
|
||||
props: any,
|
||||
}) => void,
|
||||
items?: (query: string) => any[],
|
||||
items?: (query: string) => any[] | Promise<any[]>,
|
||||
render?: () => {
|
||||
onStart?: (props: SuggestionProps) => void,
|
||||
onUpdate?: (props: SuggestionProps) => void,
|
||||
|
||||
Reference in New Issue
Block a user