mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-02 02:24:20 +01:00
fix(parser): initialize parser.yy as TreemapDB
This commit is contained in:
@@ -83,7 +83,7 @@ const getItemName = (item: { name?: string | number }): string => {
|
||||
};
|
||||
|
||||
export const parser: ParserDefinition = {
|
||||
parser: { yy: undefined },
|
||||
parser: { yy: {} as TreemapDB },
|
||||
parse: async (text: string): Promise<void> => {
|
||||
try {
|
||||
// Use a generic parse that accepts any diagram type
|
||||
|
||||
Reference in New Issue
Block a user