VScode complains about html parameter being any, I cannot change to html: string so how to specify a string in this case ?
const concatSource = ({html}) => {
source = `
<html>
${html}
</html>
`
return souce
}
VScode complains about html parameter being any, I cannot change to html: string so how to specify a string in this case ?
const concatSource = ({html}) => {
source = `
<html>
${html}
</html>
`
return souce
}
Like this:
const concatSource = ({
html
}: { html: string }) => {
source = `
<html>
${html}
</html>
`
return souce
}