mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 07:19:41 +02:00
move default_info_db into infoDbOF
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
import { DEFAULT_INFO_DB, type InfoDB } from './infoTypes.js';
|
import type { InfoFields, InfoDB } from './infoTypes.js';
|
||||||
|
|
||||||
|
export const DEFAULT_INFO_DB: InfoFields = {
|
||||||
|
info: false,
|
||||||
|
} as const;
|
||||||
|
|
||||||
let info: boolean = DEFAULT_INFO_DB.info;
|
let info: boolean = DEFAULT_INFO_DB.info;
|
||||||
|
|
||||||
|
@@ -4,10 +4,6 @@ export interface InfoFields {
|
|||||||
info: boolean;
|
info: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const DEFAULT_INFO_DB: InfoFields = {
|
|
||||||
info: false,
|
|
||||||
} as const;
|
|
||||||
|
|
||||||
export interface InfoDB extends DiagramDB {
|
export interface InfoDB extends DiagramDB {
|
||||||
clear: () => void;
|
clear: () => void;
|
||||||
setInfo: (info: boolean) => void;
|
setInfo: (info: boolean) => void;
|
||||||
|
Reference in New Issue
Block a user