mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-07-04 17:30:52 +00:00
12 lines
340 B
TypeScript
12 lines
340 B
TypeScript
import { z } from "zod";
|
|
import { ProblemSchema } from "@/generated/zod";
|
|
|
|
export const problemSchema = ProblemSchema.extend({
|
|
displayId: z.coerce.number().int().positive().min(1),
|
|
title: z.string().min(1),
|
|
description: z.string().min(1),
|
|
solution: z.string().min(1),
|
|
});
|
|
|
|
export type ProblemSchema = z.infer<typeof problemSchema>;
|