mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-14 22:09:29 +02:00
fix: remove TypeScript error suppression for ZenUml instantiation
This commit is contained in:
@@ -53,7 +53,6 @@ export const draw = async function (text: string, id: string) {
|
|||||||
|
|
||||||
const { foreignObject, container, app } = createForeignObject(id);
|
const { foreignObject, container, app } = createForeignObject(id);
|
||||||
svgContainer.appendChild(foreignObject);
|
svgContainer.appendChild(foreignObject);
|
||||||
// @ts-expect-error @zenuml/core@3.0.0 exports the wrong type for ZenUml
|
|
||||||
const zenuml = new ZenUml(app);
|
const zenuml = new ZenUml(app);
|
||||||
// default is a theme name. More themes to be added and will be configurable in the future
|
// default is a theme name. More themes to be added and will be configurable in the future
|
||||||
await zenuml.render(text, { theme: 'default', mode: 'static' });
|
await zenuml.render(text, { theme: 'default', mode: 'static' });
|
||||||
|
Reference in New Issue
Block a user