diff --git a/packages/mermaid/src/mermaid.ts b/packages/mermaid/src/mermaid.ts index 6febfdb2b..fba307223 100644 --- a/packages/mermaid/src/mermaid.ts +++ b/packages/mermaid/src/mermaid.ts @@ -340,10 +340,7 @@ const executeQueue = async () => { * // throws Error * ``` */ -const parse = async ( - text: string, - parseOptions?: ParseOptions -): Promise => { +const parse: typeof mermaidAPI.parse = async (text, parseOptions) => { return new Promise((resolve, reject) => { // 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