Skip to content

Commit

Permalink
return back <Info> and rename parse result to ast
Browse files Browse the repository at this point in the history
  • Loading branch information
Yokozuna59 authored Aug 17, 2023
1 parent efad6b3 commit 6b2424d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/mermaid/src/diagrams/info/infoParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>('info', input);
log.debug(ast);
populateDb(ast, db);
},
};

0 comments on commit 6b2424d

Please sign in to comment.