mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Add MindmapDB type
This commit is contained in:
parent
e046da10c2
commit
b71f4c7e54
@ -3,8 +3,9 @@ import mindmapParser from './parser/mindmap.jison';
|
|||||||
import * as mindmapDb from './mindmapDb.js';
|
import * as mindmapDb from './mindmapDb.js';
|
||||||
import mindmapRenderer from './mindmapRenderer.js';
|
import mindmapRenderer from './mindmapRenderer.js';
|
||||||
import mindmapStyles from './styles.js';
|
import mindmapStyles from './styles.js';
|
||||||
|
import type { DiagramDefinition } from '../../diagram-api/types.js';
|
||||||
|
|
||||||
export const diagram = {
|
export const diagram: DiagramDefinition = {
|
||||||
db: mindmapDb,
|
db: mindmapDb,
|
||||||
renderer: mindmapRenderer,
|
renderer: mindmapRenderer,
|
||||||
parser: mindmapParser,
|
parser: mindmapParser,
|
||||||
|
3
packages/mermaid/src/diagrams/mindmap/mindmapTypes.ts
Normal file
3
packages/mermaid/src/diagrams/mindmap/mindmapTypes.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
import type * as mindmapDb from './mindmapDb.js';
|
||||||
|
|
||||||
|
export type MindmapDB = typeof mindmapDb;
|
Loading…
x
Reference in New Issue
Block a user