From e77051ccc4b47951bfa4fde2be436b1bb2fb113b Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sun, 28 Apr 2024 17:33:09 +0200 Subject: use https://github.com/nunocoracao/blowfish.git --- .../blowfish/assets/lib/mermaid/__mocks__/mermaidAPI.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 themes/blowfish/assets/lib/mermaid/__mocks__/mermaidAPI.d.ts (limited to 'themes/blowfish/assets/lib/mermaid/__mocks__') diff --git a/themes/blowfish/assets/lib/mermaid/__mocks__/mermaidAPI.d.ts b/themes/blowfish/assets/lib/mermaid/__mocks__/mermaidAPI.d.ts new file mode 100644 index 0000000..52e7c9a --- /dev/null +++ b/themes/blowfish/assets/lib/mermaid/__mocks__/mermaidAPI.d.ts @@ -0,0 +1,13 @@ +export declare const mermaidAPI: { + render: import("@vitest/spy").Mock; + parse: (text: string, parseOptions?: import("../mermaidAPI.js").ParseOptions | undefined) => Promise; + initialize: import("@vitest/spy").Mock; + getConfig: () => import("../config.type.js").MermaidConfig; + setConfig: (conf: import("../config.type.js").MermaidConfig) => import("../config.type.js").MermaidConfig; + getSiteConfig: () => import("../config.type.js").MermaidConfig; + updateSiteConfig: (conf: import("../config.type.js").MermaidConfig) => import("../config.type.js").MermaidConfig; + reset: () => void; + globalReset: () => void; + defaultConfig: import("../config.type.js").MermaidConfig; +}; +export default mermaidAPI; -- cgit v1.2.3