From f93f37224560b2e649c9e8193534093fcf848af9 Mon Sep 17 00:00:00 2001 From: ajeeshRS Date: Tue, 17 Sep 2024 07:00:19 +0530 Subject: [PATCH] added types for faq --- src/lib/constant/faqs.constants.ts | 4 +++- src/types/faqs.types.ts | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/types/faqs.types.ts diff --git a/src/lib/constant/faqs.constants.ts b/src/lib/constant/faqs.constants.ts index 4e7be3c6..3fc78e58 100644 --- a/src/lib/constant/faqs.constants.ts +++ b/src/lib/constant/faqs.constants.ts @@ -1,4 +1,6 @@ -export const faqData = [ +import { faqItem } from '@/types/faqs.types'; + +export const faqData: faqItem[] = [ { question: 'How do I apply for jobs?', answer: diff --git a/src/types/faqs.types.ts b/src/types/faqs.types.ts new file mode 100644 index 00000000..7bf56987 --- /dev/null +++ b/src/types/faqs.types.ts @@ -0,0 +1,4 @@ +export type faqItem = { + question: string; + answer: string; +};