mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Update packages/mermaid/src/mermaidAPI.ts
Co-authored-by: Alois Klink <alois@aloisklink.com>
This commit is contained in:
parent
b9576b4bbe
commit
55ebfadb32
@ -99,7 +99,7 @@ export interface RenderResult {
|
||||
* @throws Error if the diagram is invalid and parseOptions.suppressErrors is false.
|
||||
*/
|
||||
|
||||
async function parse(text: string, parseOptions?: ParseOptions): Promise<boolean | void> {
|
||||
async function parse(text: string, parseOptions?: ParseOptions): Promise<boolean> {
|
||||
addDiagrams();
|
||||
try {
|
||||
const diagram = await getDiagramFromText(text);
|
||||
|
Loading…
x
Reference in New Issue
Block a user