mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 06:03:22 +08:00
fix: Add type for async items on suggestions (fix TS strict types complaining) (#1912)
This commit is contained in:
parent
cc586ce036
commit
4a6c3cbaac
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user