0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

chore: remove unused ts-expect-error directive

This commit is contained in:
Matt Kane 2024-12-05 15:19:03 +00:00
parent f13417bfbf
commit 0180487790

View file

@ -16,7 +16,6 @@ type Props = {
const StaticHtml = ({ value, name, hydrate = true }: Props) => {
if (!value) return null;
const tagName = hydrate ? 'astro-slot' : 'astro-static-slot';
// @ts-expect-error pass `name` as a prop, ignoring type errors
return h(tagName, { name, dangerouslySetInnerHTML: { __html: value } });
};