fabian-hiller / valibot

The modular and type safe schema library for validating structural data 🤖
https://valibot.dev
MIT License
6.32k stars 204 forks source link

Type instantiation is excessively deep and possibly infinite. #929

Closed ivanbarlog closed 5 days ago

ivanbarlog commented 5 days ago

When using v.any() with combination of v.forward() I get following error:

Type instantiation is excessively deep and possibly infinite.

When v.any() is changed for instance to v.record(v.string(), v.string()) the error dissapears.

Here is the playground link which reproduces this bug.

fabian-hiller commented 5 days ago

Fixed in v1.0.0-beta.7 😎