Skip to content

Commit

Permalink
Fix import of type HTMLAttributes in blog example (#6322)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
ChrisEke and Princesseuh authored Feb 21, 2023
1 parent 5e26bc8 commit 2a6d09e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/blog/src/components/HeaderLink.astro
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 2a6d09e

Please sign in to comment.