feat: expose initThrowsErrorsAsync publicly

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`.
This commit is contained in:
Alois Klink
2022-10-27 17:18:41 +01:00
parent 13110c4ed9
commit e62dd255bc

View File

@@ -513,6 +513,7 @@ const mermaid: {
renderAsync: typeof renderAsync; renderAsync: typeof renderAsync;
init: typeof init; init: typeof init;
initThrowsErrors: typeof initThrowsErrors; initThrowsErrors: typeof initThrowsErrors;
initThrowsErrorsAsync: typeof initThrowsErrorsAsync;
initialize: typeof initialize; initialize: typeof initialize;
initializeAsync: typeof initializeAsync; initializeAsync: typeof initializeAsync;
contentLoaded: typeof contentLoaded; contentLoaded: typeof contentLoaded;
@@ -527,6 +528,7 @@ const mermaid: {
renderAsync, renderAsync,
init, init,
initThrowsErrors, initThrowsErrors,
initThrowsErrorsAsync,
initialize, initialize,
initializeAsync, initializeAsync,
parseError: undefined, parseError: undefined,