diff --git a/packages/mermaid/src/diagrams/class/classDb.ts b/packages/mermaid/src/diagrams/class/classDb.ts index a59c1eada..1fec5c2dc 100644 --- a/packages/mermaid/src/diagrams/class/classDb.ts +++ b/packages/mermaid/src/diagrams/class/classDb.ts @@ -389,7 +389,6 @@ const setupToolTips = function (element: Element) { // @ts-ignore - getBoundingClientRect is not part of the d3 type definition const rect = this.getBoundingClientRect(); - // @ts-expect-error - Incorrect types tooltipElem.transition().duration(200).style('opacity', '.9'); tooltipElem .text(el.attr('title')) @@ -399,7 +398,6 @@ const setupToolTips = function (element: Element) { el.classed('hover', true); }) .on('mouseout', function () { - // @ts-expect-error - Incorrect types tooltipElem.transition().duration(500).style('opacity', 0); const el = select(this); el.classed('hover', false); diff --git a/packages/mermaid/src/diagrams/flowchart/flowDb.ts b/packages/mermaid/src/diagrams/flowchart/flowDb.ts index 488ecc83d..3b1b3f32d 100644 --- a/packages/mermaid/src/diagrams/flowchart/flowDb.ts +++ b/packages/mermaid/src/diagrams/flowchart/flowDb.ts @@ -425,7 +425,6 @@ const setupToolTips = function (element: Element) { } const rect = (this as Element)?.getBoundingClientRect(); - // @ts-ignore TODO: fix this tooltipElem.transition().duration(200).style('opacity', '.9'); tooltipElem .text(el.attr('title')) @@ -435,7 +434,6 @@ const setupToolTips = function (element: Element) { el.classed('hover', true); }) .on('mouseout', function () { - // @ts-ignore TODO: fix this tooltipElem.transition().duration(500).style('opacity', 0); const el = select(this); el.classed('hover', false); diff --git a/packages/parser/tsconfig.json b/packages/parser/tsconfig.json index 7e830e229..4822488c9 100644 --- a/packages/parser/tsconfig.json +++ b/packages/parser/tsconfig.json @@ -4,7 +4,6 @@ "rootDir": ".", "outDir": "./dist", "allowJs": false, - "preserveSymlinks": false, "strictPropertyInitialization": false }, "include": ["./src/**/*.ts", "./tests/**/*.ts"], diff --git a/tsconfig.json b/tsconfig.json index 08e23be8e..abc88759b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -75,7 +75,7 @@ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */, - "preserveSymlinks": true /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */, + // "preserveSymlinks": true /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */, "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, /* Type Checking */