0
Fork 0
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:
Christofer J. Ekervhén 2023-02-21 14:21:19 +01:00 committed by GitHub
parent 5e26bc891c
commit 2a6d09e5d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;