mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 00:32:35 +10:00
31 lines
591 B
TypeScript
31 lines
591 B
TypeScript
import { z } from "zod";
|
|
|
|
import { defaultItem, defaultUrl, itemSchema, urlSchema } from "../shared";
|
|
|
|
// Schema
|
|
export const educationSchema = itemSchema.extend({
|
|
institution: z.string().min(1),
|
|
studyType: z.string(),
|
|
area: z.string(),
|
|
score: z.string(),
|
|
date: z.string(),
|
|
summary: z.string(),
|
|
url: urlSchema,
|
|
});
|
|
|
|
// Type
|
|
export type Education = z.infer<typeof educationSchema>;
|
|
|
|
// Defaults
|
|
export const defaultEducation: Education = {
|
|
...defaultItem,
|
|
id: "",
|
|
institution: "",
|
|
studyType: "",
|
|
area: "",
|
|
score: "",
|
|
date: "",
|
|
summary: "",
|
|
url: defaultUrl,
|
|
};
|