move default_info_db into infoDbOF

This commit is contained in:
Yokozuna59 2023-06-14 22:01:27 +03:00
parent 638c3691a8
commit 6ff33149e0
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -4,10 +4,6 @@ export interface InfoFields {
info: boolean;
}
export const DEFAULT_INFO_DB: InfoFields = {
info: false,
} as const;
export interface InfoDB extends DiagramDB {
clear: () => void;
setInfo: (info: boolean) => void;