mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
assign returned variables to their variables
This commit is contained in:
parent
4b7ed7845b
commit
599fb3a728
@ -13,9 +13,9 @@ const clear = (): void => {
|
||||
};
|
||||
|
||||
const db: InfoDB = {
|
||||
clear,
|
||||
setInfo,
|
||||
getInfo,
|
||||
clear: clear,
|
||||
setInfo: setInfo,
|
||||
getInfo: getInfo,
|
||||
};
|
||||
|
||||
export default db;
|
||||
|
@ -12,13 +12,13 @@ const detector: DiagramDetector = (txt) => {
|
||||
|
||||
const loader: DiagramLoader = async () => {
|
||||
const { diagram } = await import('./infoDiagram.js');
|
||||
return { id, diagram };
|
||||
return { id: id, diagram: diagram };
|
||||
};
|
||||
|
||||
const plugin: ExternalDiagramDefinition = {
|
||||
id,
|
||||
detector,
|
||||
loader,
|
||||
id: id,
|
||||
detector: detector,
|
||||
loader: loader,
|
||||
};
|
||||
|
||||
export default plugin;
|
||||
|
Loading…
x
Reference in New Issue
Block a user