mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Fix import of type HTMLAttributes in blog example (#6322)
* Fix extend type HTMLAttributes in blog example * Update examples/blog/src/components/HeaderLink.astro Co-authored-by: Christofer J. Ekervhén <45903979+ChrisEke@users.noreply.github.com> --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
This commit is contained in:
parent
5e26bc891c
commit
2a6d09e5d2
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
---
|
||||
export interface Props extends astroHTML.JSX.AnchorHTMLAttributes {}
|
||||
import type { HTMLAttributes } from 'astro/types';
|
||||
|
||||
type Props = HTMLAttributes<'a'>;
|
||||
|
||||
const { href, class: className, ...props } = Astro.props;
|
||||
|
||||
|
|
Loading…
Reference in a new issue