summaryrefslogtreecommitdiff
path: root/packages/integrations/preact/src/static-html.ts
diff options
context:
space:
mode:
authorGravatar renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2024-11-27 16:20:16 +0800
committerGravatar GitHub <noreply@github.com> 2024-11-27 16:20:16 +0800
commit6fc29e3c24a23774d2bd960028716a660d3e9b53 (patch)
tree546653718c0b8910383455d625558213b1954f08 /packages/integrations/preact/src/static-html.ts
parentcf0d8b08a0f16bba7310d1a92c82b5a276682e8c (diff)
downloadastro-6fc29e3c24a23774d2bd960028716a660d3e9b53.tar.gz
astro-6fc29e3c24a23774d2bd960028716a660d3e9b53.tar.zst
astro-6fc29e3c24a23774d2bd960028716a660d3e9b53.zip
fix(deps): update all non-major dependencies (#12410)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
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 } });
};