We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"astro": "^4.1.2",
No response
Having astro component with Prop named as breaks typechecking.
as
--- interface Props { as: 'string' title: string; } const { title } = Astro.props; --- <div />
title becomes any, removing as fixes it. Likely somehow typescript as keyword clashes with prop. This worked fine with astro 3.
title
Things should work.
https://codesandbox.io/p/devbox/weathered-sky-vsfkw3?file=%2Fsrc%2Fcomponents%2FCard.astro%3A4%2C16
The text was updated successfully, but these errors were encountered:
Duplicate of withastro/compiler#927
Sorry, something went wrong.
No branches or pull requests
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Having astro component with Prop named
as
breaks typechecking.title
becomes any, removingas
fixes it. Likely somehow typescript as keyword clashes with prop. This worked fine with astro 3.What's the expected result?
Things should work.
Link to Minimal Reproducible Example
https://codesandbox.io/p/devbox/weathered-sky-vsfkw3?file=%2Fsrc%2Fcomponents%2FCard.astro%3A4%2C16
Participation
The text was updated successfully, but these errors were encountered: