From 2a6d09e5d24e1e426c4a5bcade647a520e8ade81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christofer=20J=2E=20Ekervh=C3=A9n?= <45903979+ChrisEke@users.noreply.github.com> Date: Tue, 21 Feb 2023 14:21:19 +0100 Subject: [PATCH] Fix import of type HTMLAttributes in blog example (#6322) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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> --- examples/blog/src/components/HeaderLink.astro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/blog/src/components/HeaderLink.astro b/examples/blog/src/components/HeaderLink.astro index e8e2e103b455..3dd439be1af6 100644 --- a/examples/blog/src/components/HeaderLink.astro +++ b/examples/blog/src/components/HeaderLink.astro @@ -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;