blocknote-comments icon indicating copy to clipboard operation
blocknote-comments copied to clipboard

Types issue

Open AdelEddarai opened this issue 1 year ago • 0 comments

I am using nextjs 14 and typescript , and i got this issue :

in this line : comment: commentStyleSpec,

 Type '{ config: { type: string; propSchema: "string"; }; implementation: StyleImplementation; }' is not assignable to type 'BlockSpec<any, any, InlineContentSchema, StyleSchema>'.
  Types of property 'implementation' are incompatible.
    Type 'StyleImplementation' is missing the following properties from type 'TiptapBlockImplementation<any, any, InlineContentSchema, StyleSchema>': node, toInternalHTML, toExternalHTMLts(2322)
(property) comment: {
    config: {
        type: string;
        propSchema: "string";
    };
    implementation: StyleImplementation;
}

AdelEddarai avatar Jun 06 '24 14:06 AdelEddarai