I’m using 3.25.50 and get a Type instantiation is excessively deep and possibly infinite. error when defining a recursive type using $ZodPipe.
type Foo = $ZodPipe<Bar, $ZodTransform>; // Type instantiation is excessively deep and possibly infinite.
type Bar = $ZodString | Foo;
with other zod types this works fine, e.g. with $ZodArray
type Foo2 = $ZodArray<Bar2>; // no error
type Bar2 = $ZodString | Foo2;
I’m using
3.25.50and get aType instantiation is excessively deep and possibly infinite.error when defining a recursive type using$ZodPipe.with other zod types this works fine, e.g. with
$ZodArray