From c9afd3976124ee1cfd688a3a593cda00d71a43bb Mon Sep 17 00:00:00 2001 From: fadihanna123 Date: Fri, 5 Jul 2024 01:36:23 +0200 Subject: [PATCH] Add extra types to education and experience --- src/consts/index.ts | 4 ++-- src/types/global.d.ts | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/consts/index.ts b/src/consts/index.ts index c7fa608..05b5e96 100644 --- a/src/consts/index.ts +++ b/src/consts/index.ts @@ -1,4 +1,4 @@ -const expeData = [ +const expeData: expeEduData[] = [ { id: 1, title: "IT consultant – Founder", @@ -57,7 +57,7 @@ const expeData = [ }, ]; -const eduData = [ +const eduData: expeEduData[] = [ { id: 1, title: "High Education Diploma with specialization in Computer Engineering", diff --git a/src/types/global.d.ts b/src/types/global.d.ts index 0122e35..275a540 100644 --- a/src/types/global.d.ts +++ b/src/types/global.d.ts @@ -6,6 +6,15 @@ declare global { company: string; location: string; } + + interface expeEduData { + id: number; + title: string; + fromDate: string; + toDate: string; + company: string; + location: string; + } } export {};