mirror of
https://github.com/withastro/astro.git
synced 2025-01-13 22:11:20 -05:00
chore: remove unused ts-expect-error directive
This commit is contained in:
parent
f13417bfbf
commit
0180487790
1 changed files with 0 additions and 1 deletions
|
@ -16,7 +16,6 @@ type Props = {
|
||||||
const StaticHtml = ({ value, name, hydrate = true }: Props) => {
|
const StaticHtml = ({ value, name, hydrate = true }: Props) => {
|
||||||
if (!value) return null;
|
if (!value) return null;
|
||||||
const tagName = hydrate ? 'astro-slot' : 'astro-static-slot';
|
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 } });
|
return h(tagName, { name, dangerouslySetInnerHTML: { __html: value } });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue