Add MindmapDB type

This commit is contained in:
Sidharth Vinod 2024-01-28 15:56:30 +05:30
parent e046da10c2
commit b71f4c7e54
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
2 changed files with 5 additions and 1 deletions

View File

@ -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,

View File

@ -0,0 +1,3 @@
import type * as mindmapDb from './mindmapDb.js';
export type MindmapDB = typeof mindmapDb;