prepare-games-shema.ts 358 B

123456789101112131415161718
  1. import { z } from "zod";
  2. class prepareGamesShema {
  3. public ZSigameSettings = z.object({
  4. categoryIds: z.array(z.number()),
  5. });
  6. public ZMafiaSettings = z.object({
  7. test: z.string(),
  8. });
  9. public ZAllGamesSettings = z.union([
  10. this.ZSigameSettings,
  11. this.ZMafiaSettings,
  12. ]);
  13. }
  14. export const PrepareGamesShema = new prepareGamesShema();