refactoring

This commit is contained in:
Philipp Kühn
2021-01-19 10:09:32 +01:00
parent aaa0832883
commit c13d65c842
7 changed files with 46 additions and 22 deletions

View File

@@ -1,3 +1,4 @@
import { Range } from '@tiptap/core'
import { ResolvedPos } from 'prosemirror-model'
export interface Trigger {
@@ -8,10 +9,7 @@ export interface Trigger {
}
export type SuggestionMatch = {
range: {
from: number,
to: number,
},
range: Range,
query: string,
text: string,
} | null