sibiraj-s / ngx-tiptap

Angular bindings for tiptap v2
https://sibiraj-s.github.io/ngx-tiptap/
MIT License
126 stars 19 forks source link

Property '"editor"' is incompatible with index signature #57

Closed Rijoanul-Shanto closed 1 year ago

Rijoanul-Shanto commented 1 year ago

Having trouble with the following error:

node_modules/ngx-tiptap/lib/node-view.component.d.ts:13:93 - error TS2344: 
Type '{ editor: { alias: "editor"; required: false; }; node: { alias: "node"; required: false; }; decorations: { alias: "decorations"; required: false; }; selected: { alias: "selected"; required: false; }; extension: { ...; }; getPos: { ...; }; updateAttributes: { ...; }; deleteNode: { ...; }; }' does not satisfy the constraint '{ [key: string]: string; }'.

Property '"editor"' is incompatible with index signature.
Type '{ alias: "editor"; required: false; }' is not assignable to type 'string'.

I'm using angular 15.2.9

sibiraj-s commented 1 year ago

Hi. Please provide more details.

You can check the stackblitz https://stackblitz.com/edit/ngx-tiptap?file=src%2Fapp%2Fapp.component.ts for reference.

Moving this to a discussion, it appears not an issue with the package