From 0d9618646f27bbae8fc5f0cd01a0c731469aba5d Mon Sep 17 00:00:00 2001 From: Ben Trewern Date: Tue, 28 Jul 2026 00:22:43 +0100 Subject: [PATCH 1/2] Add missing type annotation. --- src/plugin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugin.js b/src/plugin.js index 60b599f9..6ca1e6ca 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -25,6 +25,7 @@ import { IconTable, IconTableWithHeadings, IconTableWithoutHeadings, IconStretch * @property {TableConfig} config - user config for Tool * @property {object} api - Editor.js API * @property {boolean} readOnly - read-only mode flag + * @property {BlockAPI} block - interact with current block */ /** * @typedef {import('@editorjs/editorjs').PasteEvent} PasteEvent From 871af17732002c0524874ebe3e411ae1e05590de Mon Sep 17 00:00:00 2001 From: Ben Trewern Date: Wed, 29 Jul 2026 11:19:56 +0100 Subject: [PATCH 2/2] Import BlockAPI typedef. --- src/plugin.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugin.js b/src/plugin.js index 6ca1e6ca..5c2f0f4c 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -2,6 +2,9 @@ import Table from './table'; import * as $ from './utils/dom'; import { IconTable, IconTableWithHeadings, IconTableWithoutHeadings, IconStretch, IconCollapse } from '@codexteam/icons'; +/** + * @typedef {import('@editorjs/editorjs').BlockAPI} BlockAPI + */ /** * @typedef {object} TableData - configuration that the user can set for the table * @property {number} rows - number of rows in the table