Now I just make a pull request before this bug is never fixed.
The Problem
The problem is that TypeScript looks as package entrypoint, mermaid.ts from the dist/. This is wrong because this file only exports render and init and not withMermaid.
See Issue #46
The Solution
Renamed mermaid.ts to render-helpers.ts to be more clear, and add type declaration files on build.
Also I updated the dependencies, to be up to date.
Now I just make a pull request before this bug is never fixed.
The Problem
The problem is that TypeScript looks as package entrypoint,
mermaid.ts
from thedist/
. This is wrong because this file only exportsrender
andinit
and notwithMermaid
. See Issue #46The Solution
Renamed
mermaid.ts
torender-helpers.ts
to be more clear, and add type declaration files on build. Also I updated the dependencies, to be up to date.