0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00

Remove unneeded ts-expect-error directive

This commit is contained in:
Matt Kane 2024-12-05 15:23:05 +00:00
parent 69b0849051
commit 3549203866

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 } });
};