mirror of
https://github.com/morluto/rea.git
synced 2026-10-30 03:15:54 +00:00
10 lines
338 B
TypeScript
10 lines
338 B
TypeScript
import { z } from "zod";
|
|
|
|
/** JSON-safe value shared by domain, application, and adapter boundaries. */
|
|
export const jsonValueSchema = z.json();
|
|
|
|
/** JSON object boundary for caller-visible parameter maps. */
|
|
export const jsonObjectSchema = z.record(z.string(), jsonValueSchema);
|
|
|
|
export type JsonValue = z.infer<typeof jsonValueSchema>;
|