Download Reactive-Resume/libs/schema/src/sections/custom-section.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 619 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Reactive-Resume/libs/schema/src/sections/custom-section.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/Reactive-Resume/libs/schema/src/sections/custom-section.ts
-
curl -L -o custom-section.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Reactive-Resume/libs/schema/src/sections/custom-section.ts
619 Bytes
| import { z } from "zod"; | |
| import { defaultItem, defaultUrl, itemSchema, urlSchema } from "../shared"; | |
| // Schema | |
| export const customSectionSchema = itemSchema.extend({ | |
| name: z.string(), | |
| description: z.string(), | |
| date: z.string(), | |
| location: z.string(), | |
| summary: z.string(), | |
| keywords: z.array(z.string()).default([]), | |
| url: urlSchema, | |
| }); | |
| // Type | |
| export type CustomSection = z.infer<typeof customSectionSchema>; | |
| // Defaults | |
| export const defaultCustomSection: CustomSection = { | |
| ...defaultItem, | |
| name: "", | |
| description: "", | |
| date: "", | |
| location: "", | |
| summary: "", | |
| keywords: [], | |
| url: defaultUrl, | |
| }; | |