Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Type error on <Image /> component when strict TypeScript rules are used with library type checking. #10549

Merged
merged 10 commits into from
Mar 26, 2024
5 changes: 5 additions & 0 deletions .changeset/blue-dolls-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro": major
admirsaheta marked this conversation as resolved.
Show resolved Hide resolved
---

hotfix:explicit-typesafe-fix
admirsaheta marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion packages/astro/components/Image.astro
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (image.srcSet.values.length > 0) {
}

if (import.meta.env.DEV) {
additionalAttributes['data-image-component'] = 'true';
(additionalAttributes as Record<string, unknown>)['data-image-component'] = 'true';
}
---

Expand Down
Loading