mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 16:59:48 +02:00
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:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user