Skip to content

Commit a0d4d5a

Browse files
theletterfCursor
andcommitted
Format mermaid.ts with prettier
Co-authored-by: Cursor <noreply@cursor.com>
1 parent 3bb438b commit a0d4d5a

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/Elastic.Documentation.Site/Assets/mermaid.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ declare global {
66
interface Window {
77
mermaid: {
88
initialize: (config: Record<string, unknown>) => void
9-
render: (
10-
id: string,
11-
code: string
12-
) => Promise<{ svg: string }>
9+
render: (id: string, code: string) => Promise<{ svg: string }>
1310
}
1411
}
1512
}
@@ -92,8 +89,7 @@ async function loadMermaid(): Promise<void> {
9289

9390
resolve()
9491
}
95-
script.onerror = () =>
96-
reject(new Error('Failed to load Mermaid.js'))
92+
script.onerror = () => reject(new Error('Failed to load Mermaid.js'))
9793
document.head.appendChild(script)
9894
})
9995

0 commit comments

Comments
 (0)