-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Labels
- P4: importantViolate documented behavior or significantly improves performance (priority)Violate documented behavior or significantly improves performance (priority)feat: tsxRelated to the TSX output (scope)Related to the TSX output (scope)
Description
Describe the Bug
Having as
as Prop gives this error: 'Props' is declared but never used`
here's a small reproduction
---
interface Props {
as?: string;
href?: string;
}
const { as: Component, href } = Astro.props;
const level = Component.replace("h", "");
const className = `typography-heading-${level}`;
---
<Component id={href.replace("#", "")}>
<a href={href}>
<slot />
</a>
</Component>
Steps to Reproduce
using typescript and the strictest settings and then running build
or astro check
claus, melodyclue, Edo-San, RodrigoTomeES, dev-nicolaos and 6 more
Metadata
Metadata
Assignees
Labels
- P4: importantViolate documented behavior or significantly improves performance (priority)Violate documented behavior or significantly improves performance (priority)feat: tsxRelated to the TSX output (scope)Related to the TSX output (scope)