improve types

This commit is contained in:
Philipp Kühn
2021-01-23 13:11:22 +01:00
parent 1e6f19667e
commit 1fc50705c6
4 changed files with 17 additions and 10 deletions

View File

@@ -1,4 +1,6 @@
// @ts-nocheck
import { NodeView } from 'prosemirror-view'
export function updateColumns(node, colgroup, table, cellMinWidth, overrideCol, overrideValue) {
let totalWidth = 0
let fixedWidth = true
@@ -44,7 +46,7 @@ export function updateColumns(node, colgroup, table, cellMinWidth, overrideCol,
}
}
export class TableView {
export class TableView implements NodeView {
constructor(node, cellMinWidth) {
this.node = node
this.cellMinWidth = cellMinWidth