Download next.js/examples/blog-with-comment/interfaces/index.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 357 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/blog-with-comment/interfaces/index.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/examples/blog-with-comment/interfaces/index.ts
-
curl -L -o index.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/blog-with-comment/interfaces/index.ts
357 Bytes
| export type User = { | |
| name: string; | |
| picture: string; | |
| sub: string; | |
| email?: string; | |
| }; | |
| export type Comment = { | |
| id: string; | |
| created_at: number; | |
| url: string; | |
| text: string; | |
| user: User; | |
| }; | |
| export type Post = { | |
| slug?: string; | |
| title?: string; | |
| author?: string; | |
| date?: Date; | |
| content?: string; | |
| excerpt?: string; | |
| [key: string]: any; | |
| }; | |