/
bomjkee
/
hackathon-mini-app
Обзор
Документация
Войти
/
bomjkee
/
hackathon-mini-app
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/types/hackathon.ts
25 строк
633 B
bomjkee
first commit
22 фев 2025, 23:54
22 фев 2025, 23:54
bf0b735
Код
Авторство
О чём код?
import { z } from "zod"; export const HackathonSchema = z.object({ id: z.number(), name: z.string(), description: z.string(), start_description: z.string(), max_members: z.number(), start_date: z.number(), end_date: z.number() }); export const HackathonsSchema = z.object({ id: z.number(), name: z.string(), start_description: z.string(), }); export const HackathonListSchema = z.array(HackathonsSchema); export type Hackathon = z.infer<typeof HackathonSchema>; export type Hackathons = z.infer<typeof HackathonsSchema>; export type HackathonList = z.infer<typeof HackathonListSchema>;