We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bb438b commit a0d4d5aCopy full SHA for a0d4d5a
1 file changed
src/Elastic.Documentation.Site/Assets/mermaid.ts
@@ -6,10 +6,7 @@ declare global {
6
interface Window {
7
mermaid: {
8
initialize: (config: Record<string, unknown>) => void
9
- render: (
10
- id: string,
11
- code: string
12
- ) => Promise<{ svg: string }>
+ render: (id: string, code: string) => Promise<{ svg: string }>
13
}
14
15
@@ -92,8 +89,7 @@ async function loadMermaid(): Promise<void> {
92
89
93
90
resolve()
94
91
95
- script.onerror = () =>
96
- reject(new Error('Failed to load Mermaid.js'))
+ script.onerror = () => reject(new Error('Failed to load Mermaid.js'))
97
document.head.appendChild(script)
98
})
99
0 commit comments