diff options
author | 2024-11-27 16:20:16 +0800 | |
---|---|---|
committer | 2024-11-27 16:20:16 +0800 | |
commit | 6fc29e3c24a23774d2bd960028716a660d3e9b53 (patch) | |
tree | 546653718c0b8910383455d625558213b1954f08 /packages/integrations/preact/src/static-html.ts | |
parent | cf0d8b08a0f16bba7310d1a92c82b5a276682e8c (diff) | |
download | astro-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.ts | 1 |
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 } }); }; |