summaryrefslogtreecommitdiff
path: root/packages/integrations/preact/src/static-html.ts
diff options
context:
space:
mode:
authorGravatar Emanuele Stoppa <my.burning@gmail.com> 2024-11-27 14:31:09 +0000
committerGravatar Emanuele Stoppa <my.burning@gmail.com> 2024-11-27 14:31:09 +0000
commit2da81e53c31f11b77c57e5ad4861fe3602ab5d7b (patch)
tree21d837ef35a28d27e621e9bebc328132a5cf2572 /packages/integrations/preact/src/static-html.ts
parent827093e6175549771f9d93ddf3f2be4c2c60f0b7 (diff)
parent6eac6ba7331c3af7c2b704dc15a133748a2fd18b (diff)
downloadastro-2da81e53c31f11b77c57e5ad4861fe3602ab5d7b.tar.gz
astro-2da81e53c31f11b77c57e5ad4861fe3602ab5d7b.tar.zst
astro-2da81e53c31f11b77c57e5ad4861fe3602ab5d7b.zip
Merge branch 'main' into next
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 } });
};