mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 16:51:33 +10:00
refactor(v4.0.0-alpha): beginning of a new era
This commit is contained in:
30
libs/schema/src/sections/education.ts
Normal file
30
libs/schema/src/sections/education.ts
Normal file
@ -0,0 +1,30 @@
|
||||
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,
|
||||
};
|
||||
Reference in New Issue
Block a user