Skip to content

Commit

Permalink
fix: Add type for async items on suggestions (fix TS strict types com…
Browse files Browse the repository at this point in the history
…plaining) (#1912)
  • Loading branch information
d8vjork authored Sep 20, 2021
1 parent cc586ce commit 4a6c3cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/suggestion/src/suggestion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4a6c3cb

Please sign in to comment.