mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-14 14:34:42 +00:00
WIP_DNS
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
import { z } from "zod/v4";
|
||||
import { GameConfigSchema } from "./Schemas";
|
||||
|
||||
export const CreateGameInputSchema = GameConfigSchema.or(
|
||||
export const CreateGameConfigSchema = GameConfigSchema.or(
|
||||
z
|
||||
.object({})
|
||||
.strict()
|
||||
.transform((val) => undefined),
|
||||
);
|
||||
|
||||
export const CreateGameInputSchema = z.object({
|
||||
config: CreateGameConfigSchema,
|
||||
startTime: z.number().optional(),
|
||||
});
|
||||
export type CreateGameInput = z.infer<typeof CreateGameInputSchema>;
|
||||
|
||||
export const GameInputSchema = GameConfigSchema.partial();
|
||||
|
||||
Reference in New Issue
Block a user