Merge branch 'neo-new-shapes' of github.com:Mermaid-Chart/alana-mermaid into neo-new-shapes

This commit is contained in:
Knut Sveidqvist
2024-09-26 19:51:21 +02:00

View File

@@ -340,10 +340,7 @@ const executeQueue = async () => {
* // throws Error * // throws Error
* ``` * ```
*/ */
const parse = async ( const parse: typeof mermaidAPI.parse = async (text, parseOptions) => {
text: string,
parseOptions?: ParseOptions
): Promise<boolean | void | ParseResult> => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
// This promise will resolve when the render call is done. // This promise will resolve when the render call is done.
// It will be queued first and will be executed when it is first in line // It will be queued first and will be executed when it is first in line