-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Description
As of right now, recursive tuples such as
const y = z.lazy((): any => z.tuple([y, y]).or(z.string()))
y.parse(["a", ["b", "c"]])
// infinite recursioncause infinite recursion. However, recursive arrays have no such problem:
const y = z.lazy((): any => z.array(y).or(z.string()))
y.parse(["a", ["b", "c"]])
// worksWould it be possible to also enable creating recursive tuples?
Metadata
Metadata
Assignees
Labels
No labels