Skip to content

Commit 62394e7

Browse files
committed
fix type
1 parent 5e348ce commit 62394e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/mermaid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {useEffect} from 'react';
44
export default function Mermaid() {
55
useEffect(() => {
66
(async function () {
7-
const escapeHTML = str => {
7+
const escapeHTML = (str: string) => {
88
return str.replace(/[&<>"']/g, function (match) {
99
const escapeMap = {
1010
'&': '&amp;',

0 commit comments

Comments
 (0)