summaryrefslogtreecommitdiff
path: root/packages/integrations/preact/src/static-html.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/preact/src/static-html.ts')
-rw-r--r--packages/integrations/preact/src/static-html.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/integrations/preact/src/static-html.ts b/packages/integrations/preact/src/static-html.ts
index 453e72b7f..af3184808 100644
--- a/packages/integrations/preact/src/static-html.ts
+++ b/packages/integrations/preact/src/static-html.ts
@@ -16,6 +16,7 @@ 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 } });
};