Initial Commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import z from "zod";
|
||||
|
||||
/** Zod schema for validating a `TypeDefinition` at runtime boundaries. */
|
||||
export const TypeDefinitionSchema = z.object({
|
||||
tag: z.string().min(1),
|
||||
ctor: z.function(),
|
||||
encode: z.function(),
|
||||
decode: z.function(),
|
||||
});
|
||||
Reference in New Issue
Block a user