From 421305a29906c20bb6a1dd4fcab80350c9fb5561 Mon Sep 17 00:00:00 2001 From: Noah Swerhun Date: Sun, 14 Apr 2024 21:40:19 -0500 Subject: [PATCH] switched two interfaces to types --- src/components/Metadata.astro | 4 ++-- src/layouts/Layout.astro | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Metadata.astro b/src/components/Metadata.astro index 6745d35..34ae2fb 100644 --- a/src/components/Metadata.astro +++ b/src/components/Metadata.astro @@ -1,8 +1,8 @@ --- -interface Props { +type Props = { title: string; description: string; -} +}; const domain = "jhunterdeloche.com"; const author = "J. Hunter DeLoche"; diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 6ceb31a..379caf0 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -4,10 +4,10 @@ import Header from "@/components/Header.astro"; import Metadata from "@/components/Metadata.astro"; import { ViewTransitions } from "astro:transitions"; -interface Props { +type Props = { title: string; description: string; -} +}; const { title, description }: Props = Astro.props; ---