Skip to content

Commit

Permalink
add type keyword for import for info diagram files
Browse files Browse the repository at this point in the history
  • Loading branch information
Yokozuna59 committed Jun 12, 2023
1 parent e6a48f8 commit dfdfa63
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/mermaid/src/diagrams/info/infoDb.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** Created by knut on 15-01-14. */
import { clear } from '../../commonDb.js';
import { InfoDb } from './infoTypes.js';
import type { InfoDb } from './infoTypes.js';

let info = false;

Expand Down
2 changes: 1 addition & 1 deletion packages/mermaid/src/diagrams/info/infoDiagram.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DiagramDefinition } from '../../diagram-api/types.js';
import type { DiagramDefinition } from '../../diagram-api/types.js';
// @ts-ignore: TODO Fix ts errors
import parser from './parser/info.jison';
import db from './infoDb.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/mermaid/src/diagrams/info/infoRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { select } from 'd3';
import { log } from '../../logger.js';
import { getConfig } from '../../config.js';
import { DrawDefinition } from '../../diagram-api/types.js';
import type { DrawDefinition } from '../../diagram-api/types.js';

/**
* Draws a an info picture in the tag with id: id based on the graph definition in text.
Expand Down
2 changes: 1 addition & 1 deletion packages/mermaid/src/diagrams/info/infoTypes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DiagramDb } from '../../diagram-api/types.js';
import type { DiagramDb } from '../../diagram-api/types.js';

/**
* Info diagram DB.
Expand Down

0 comments on commit dfdfa63

Please sign in to comment.