Property 'block' does not exist on type 'TableConstructor'
When compiling a project that uses @editor-js/table with typescript, I get the following error:
assets/node_modules/@editorjs/table/dist/plugin.d.ts:70:48 - error TS2339: Property 'block' does not exist on type 'TableConstructor'.
70 constructor({ data, config, api, readOnly, block }: TableConstructor);
~~~~~
Found 1 error in assets/node_modules/@editorjs/table/dist/plugin.d.ts:70
Any idea how I can fix this?
Take a look at this example: https://github.com/editor-js/image/blob/master/src/index.ts
Take a look at this example: https://github.com/editor-js/image/blob/master/src/index.ts
Hi, I'm failing to see how this example answers the question
I am also getting this error and I installed the table package and following the documented implementation, so asking someone to look at an example of source code doesn't feel like an answer
I ended up ignoring errors in TablePlugin like this:
tools: {
table: {
// @ts-expect-error TablePlugin doesn't have proper types
class: TablePlugin,
},
},