Skip to content

Commit

Permalink
chore: fix type for tables
Browse files Browse the repository at this point in the history
  • Loading branch information
nperez0111 committed Nov 26, 2024
1 parent e7e88b7 commit 7870a77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/extension-table/src/TableView.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Node as ProseMirrorNode } from '@tiptap/pm/model'
import { NodeView } from '@tiptap/pm/view'
import { NodeView, ViewMutationRecord } from '@tiptap/pm/view'

import { getColStyleDeclaration } from './utilities/colStyle.js'

Expand Down Expand Up @@ -102,7 +102,7 @@ export class TableView implements NodeView {
return true
}

ignoreMutation(mutation: MutationRecord | { type: 'selection'; target: Element }) {
ignoreMutation(mutation: ViewMutationRecord) {
return (
mutation.type === 'attributes'
&& (mutation.target === this.table || this.colgroup.contains(mutation.target))
Expand Down

0 comments on commit 7870a77

Please sign in to comment.