fix: ParseResult type

This commit is contained in:
Sidharth Vinod
2024-09-16 15:59:03 +05:30
parent 2bb1a2c4f2
commit c8381d0fca

View File

@@ -59,20 +59,20 @@ export interface ParseOptions {
export interface ParseResult {
success: boolean;
/**
* The mermaid code after extracting the config.
*/
code: string;
/**
* The config passed as YAML frontmatter or directives
*/
config: MermaidConfig;
title?: string;
/**
* The diagram AST
*
*/
diagram?: Diagram;
/**
* The error that occurred during parsing, if any.
*/
error?: unknown;
}
// This makes it clear that we're working with a d3 selected element of some kind, even though it's hard to specify the exact type.