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,
|
range: Range,
|
||||||
props: any,
|
props: any,
|
||||||
}) => void,
|
}) => void,
|
||||||
items?: (query: string) => any[],
|
items?: (query: string) => any[] | Promise<any[]>,
|
||||||
render?: () => {
|
render?: () => {
|
||||||
onStart?: (props: SuggestionProps) => void,
|
onStart?: (props: SuggestionProps) => void,
|
||||||
onUpdate?: (props: SuggestionProps) => void,
|
onUpdate?: (props: SuggestionProps) => void,
|
||||||
|
|||||||
Reference in New Issue
Block a user