From deaa4b63b922e5ec7a15ca86176e881eeecc20a8 Mon Sep 17 00:00:00 2001 From: Sebastian Eschweiler Date: Tue, 31 Dec 2024 15:42:30 +0100 Subject: [PATCH] Enhance type safety in skills management - Added type annotations for skill categories in `page.tsx` to improve type safety and maintainability. - Updated the mapping logic for skill categories to ensure proper type handling, enhancing code clarity. --- app/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index ffcad65..2d41758 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -377,7 +377,7 @@ export default async function Resume() { {siteConfig.displaySkillCategories ? (
- {skills.skillCategories.map((category) => ( + {skills.skillCategories.map((category: SkillCategory) => (

{category.category} @@ -397,7 +397,7 @@ export default async function Resume() {

) : (
- {skills.skillCategories.flatMap((category) => + {skills.skillCategories.flatMap((category: SkillCategory) => category.skills.map((skill: string) => (