diff --git a/packages/mermaid/src/diagrams/info/infoParser.ts b/packages/mermaid/src/diagrams/info/infoParser.ts index 27b1b21610..b4df33600b 100644 --- a/packages/mermaid/src/diagrams/info/infoParser.ts +++ b/packages/mermaid/src/diagrams/info/infoParser.ts @@ -14,8 +14,8 @@ function populateDb(ast: Info, db: InfoDB) { export const parser: ParserDefinition = { parse: (input: string): void => { - const result = parse('info', input); - log.debug(result); - populateDb(result, db); + const ast: Info = parse('info', input); + log.debug(ast); + populateDb(ast, db); }, };