mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-03 02:54:06 +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 = {
|
export const parser: ParserDefinition = {
|
||||||
parser: { yy: undefined },
|
parser: { yy: {} as TreemapDB },
|
||||||
parse: async (text: string): Promise<void> => {
|
parse: async (text: string): Promise<void> => {
|
||||||
try {
|
try {
|
||||||
// Use a generic parse that accepts any diagram type
|
// Use a generic parse that accepts any diagram type
|
||||||
|
|||||||
Reference in New Issue
Block a user