TypeError: Cannot read properties of undefined (reading 'extend'). The path to Base import is correct. Typescript sees extend field on Base schema.
base.policy.ts
import * as z from "zod";
const Base = z.object({
one: z.any();
two: z.any();
})
export { Base };
three.policy.ts
import * as z from "zod";
import { Base } from "./";
const Extended = Base.extend({
three: z.any();
})