fix: remove TypeScript error suppression for ZenUml instantiation

This commit is contained in:
MrCoder
2025-07-27 21:08:00 +10:00
parent 3ffe9618ae
commit a9f7a94ae3

View File

@@ -53,7 +53,6 @@ export const draw = async function (text: string, id: string) {
const { foreignObject, container, app } = createForeignObject(id);
svgContainer.appendChild(foreignObject);
// @ts-expect-error @zenuml/core@3.0.0 exports the wrong type for ZenUml
const zenuml = new ZenUml(app);
// 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' });