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

@@ -7,7 +7,7 @@ import { createCell } from './createCell'
import { getTableNodeTypes } from './getTableNodeTypes'
export function createTable(schema: Schema, rowsCount: 3, colsCount: 3, withHeaderRow: true, cellContent?: Fragment<Schema> | ProsemirrorNode<Schema> | Array<ProsemirrorNode<Schema>>) {
export function createTable(schema: Schema, rowsCount: number, colsCount: number, withHeaderRow: boolean, cellContent?: Fragment<Schema> | ProsemirrorNode<Schema> | Array<ProsemirrorNode<Schema>>) {
const types = getTableNodeTypes(schema)
const headerCells = []