fix ts errors

This commit is contained in:
Philipp Kühn
2020-09-21 23:44:35 +02:00
parent 4da71ecfbb
commit 78ff453030
6 changed files with 19 additions and 20 deletions

View File

@@ -8,7 +8,7 @@ declare module '../Editor' {
}
}
export const removeMarks: RemoveMarksCommand = () => ({ tr, state }) => {
export const removeMarks: RemoveMarksCommand = () => ({ tr, state, view }) => {
const { selection } = tr
const { from, to, empty } = selection
@@ -19,7 +19,7 @@ export const removeMarks: RemoveMarksCommand = () => ({ tr, state }) => {
Object
.entries(state.schema.marks)
.forEach(([name, mark]) => {
tr.removeMark(from, to, mark)
tr.removeMark(from, to, mark as any)
})
return true