Skip to content

Commit

Permalink
feat: expose initThrowsErrorsAsync publicly
Browse files Browse the repository at this point in the history
Expose the function `initThrowsErrorsAsync()` publicly
as `mermaid.initThrowsErrorsAsync()`.

It has the TSDoc `@alpha` and `@deprecated` tags, so people should
be warned that it might be modified in Mermaid v10 or earlier.

Needed for `mermaid-cli` to handle `lazyLoadedDiagrams`.
  • Loading branch information
aloisklink committed Oct 27, 2022
1 parent 13110c4 commit e62dd25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/mermaid/src/mermaid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ const mermaid: {
renderAsync: typeof renderAsync;
init: typeof init;
initThrowsErrors: typeof initThrowsErrors;
initThrowsErrorsAsync: typeof initThrowsErrorsAsync;
initialize: typeof initialize;
initializeAsync: typeof initializeAsync;
contentLoaded: typeof contentLoaded;
Expand All @@ -527,6 +528,7 @@ const mermaid: {
renderAsync,
init,
initThrowsErrors,
initThrowsErrorsAsync,
initialize,
initializeAsync,
parseError: undefined,
Expand Down

0 comments on commit e62dd25

Please sign in to comment.