import * as z from "jazz-tools-zod-v4-rn-patch/v4-mini"; import { expect, test } from "vitest"; // declare module "@jazz-tools-zod-v4-rn-patch/core" { // interface $ZodType { // /** @deprecated */ // fun(): string; // } // } test("prototype extension", () => { z.ZodMiniType.prototype.fun = function () { return "fun"; }; // should pass const result = (z.string() as any).fun(); expect(result).toBe("fun"); // expectTypeOf().toEqualTypeOf(); // clean up z.ZodMiniType.prototype.fun = undefined; });