From e4b9c6b5d04647be3b650ce7ee9117b54f5e906d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Krzy=C5=BCanowski?= Date: Sat, 16 Mar 2024 16:00:48 +0100 Subject: [PATCH] fix: fix types --- packages/seo/src/meta.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/seo/src/meta.ts b/packages/seo/src/meta.ts index 09cfcfd..6995172 100644 --- a/packages/seo/src/meta.ts +++ b/packages/seo/src/meta.ts @@ -6,9 +6,7 @@ type Description = { encounter: string } -type Meta = - | Pick - | ((props: Partial) => Pick) +type Meta = ((props: Partial) => Pick) const meta: DefaultSeoProps = { openGraph: { @@ -19,15 +17,15 @@ const meta: DefaultSeoProps = { }, } -const metaHomepage: Meta = { +const metaHomepage: Meta = () => ({ title: "exile.watch: Master Path of Exile with Visual Ability Insights - Quick, Informative GIFs", description: "Master Path of Exile with exile.watch: Streamline your game with our quick visual guides and GIFs." -} +}) -const metaWelcome: Meta = { +const metaWelcome: Meta = () => ({ title: `Welcome`, description: "Welcome to your Path of Exile edge with exile.watch: Dive into swift, visual ability insights and GIFs for smarter gameplay." -} +}) const metaDirectory: Meta = ({directory}) => ({ title: `Directory`,