// re-export zod so that it can be auto imported as // import { zod } from "zod" export * as zod from "zod" import * as zod from "zod/v4" import { $strip } from "zod/v4/core" export namespace zodHelper { type ExtraKeys = Exclude // Checks for extra keys in schema not defined in the model type ThrowIfExtraKeys = ExtraKeys extends never ? unknown : { [key: string]: never } // If there are extra keys, raise a type error export function fromType() { return } & ThrowIfExtraKeys>( schema: Schema ): zod.ZodObject => { return zod.object(schema) } } export function is(type: zod.ZodType, value: unknown): value is T { return type.safeParse(value).success } }