Download Reactive-Resume/libs/schema/src/sections/certification.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 515 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Reactive-Resume/libs/schema/src/sections/certification.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/Reactive-Resume/libs/schema/src/sections/certification.ts
-
curl -L -o certification.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Reactive-Resume/libs/schema/src/sections/certification.ts
515 Bytes
| import { z } from "zod"; | |
| import { defaultItem, defaultUrl, itemSchema, urlSchema } from "../shared"; | |
| // Schema | |
| export const certificationSchema = itemSchema.extend({ | |
| name: z.string().min(1), | |
| issuer: z.string(), | |
| date: z.string(), | |
| summary: z.string(), | |
| url: urlSchema, | |
| }); | |
| // Type | |
| export type Certification = z.infer<typeof certificationSchema>; | |
| // Defaults | |
| export const defaultCertification: Certification = { | |
| ...defaultItem, | |
| name: "", | |
| issuer: "", | |
| date: "", | |
| summary: "", | |
| url: defaultUrl, | |
| }; | |