Limitation on union of mapped types (25 members)
Opened this issue ยท 3 comments
Currently, tsgo exhibits the same limitation as TypeScript regarding unions of mapped types: when the mapped type has more than 25 members, compilation fails.
See the original TypeScript issue for details: microsoft/TypeScript#40803
Is tsgo bound to the same internal limit as TypeScript?
Do you plan to make this configurable or increase/remove the limit in tsgo?
No plans to change this behavior. We don't want to make TS 10x faster and then just do 10x more work and be right back where we started.
Do you plan to make this configurable
Could be an interesting compromise?
Configurability on type relations is generally not a great idea when there's not an unambiguous "better" setting. You could easily get into situations where libraries' declaration files just mysteriously fail in weird ways (e.g. constraint violations) because they set their Max Combinatorial Explosion to 36 and you had it at 48, or vice versa.