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.

Steps to reproduce
Repository: https://github.com/victorgarciaesgi/regle/tree/FRONT/experimental/tsgo
Branch:
experimental/tsgonpx corepack enable pnpmto install the correct package managernvm usepnpm installpnpm run buildto build all monorepo packagesThen run
pnpm run typecheck --filter="@regle/core"Or
pnpm run typecheck --filter="@regle/rules"Behavior with
typescript@5.9No type error, inference works well as it can be seen here in playground
Behavior with
tsgotsgoproduces the same error on a lot of generics, sayingExpression produces a union type that is too complex to represent.