Steps to reproduce
Repository: https://github.com/victorgarciaesgi/regle/tree/FRONT/experimental/tsgo
Branch: experimental/tsgo
- Run
npx corepack enable pnpm to install the correct package manager
- Run
nvm use
- Run
pnpm install
- Run
pnpm run build to build all monorepo packages
Then run pnpm run typecheck --filter="@regle/core"
Or pnpm run typecheck --filter="@regle/rules"
Behavior with typescript@5.9
No type error, inference works well as it can be seen here in playground
Behavior with tsgo
tsgo produces the same error on a lot of generics, saying Expression produces a union type that is too complex to represent.
