mirror of
https://github.com/PerpetualSoftware/pad.git
synced 2026-09-21 01:53:33 +00:00
Fix svelte-check type error in MermaidCodeBlock NodeView
Cast the NodeView factory return to `any` to satisfy the CodeBlockOptions type constraint in strict mode.
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
// detecting our SVG insertion and triggering an infinite re-parse loop.
|
||||
const MermaidCodeBlock = CodeBlock.extend({
|
||||
addNodeView() {
|
||||
return ({ node }: any) => {
|
||||
return (({ node }: any) => {
|
||||
const lang = node.attrs.language;
|
||||
|
||||
// Non-mermaid: default rendering
|
||||
@@ -105,7 +105,7 @@
|
||||
return !code.contains(mutation.target);
|
||||
},
|
||||
};
|
||||
};
|
||||
}) as any;
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user