mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 08:50:13 +02:00
fix: ParseResult type
This commit is contained in:
@@ -59,20 +59,20 @@ export interface ParseOptions {
|
|||||||
|
|
||||||
export interface ParseResult {
|
export interface ParseResult {
|
||||||
success: boolean;
|
success: boolean;
|
||||||
|
/**
|
||||||
|
* The mermaid code after extracting the config.
|
||||||
|
*/
|
||||||
code: string;
|
code: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The config passed as YAML frontmatter or directives
|
* The config passed as YAML frontmatter or directives
|
||||||
*/
|
*/
|
||||||
config: MermaidConfig;
|
config: MermaidConfig;
|
||||||
|
|
||||||
title?: string;
|
title?: string;
|
||||||
/**
|
|
||||||
* The diagram AST
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
diagram?: Diagram;
|
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.
|
// 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.
|
||||||
|
Reference in New Issue
Block a user