Re:TypeScript 3.5
by simplify on Wednesday May 29, 2019 @03:25PM
(#20044300)
> I just cannot take a type system seriously when workarounds like that are needed.
Are you familiar with type theory and how easy it is for a type system to require too much work to be useful? Especially with conditional types. TypeScript has been doing a phenomenal job.
For this particular use case, since version 3.4 you can write `'x' as const` which will work no matter how large your type is.
Are you familiar with type theory and how easy it is for a type system to require too much work to be useful? Especially with conditional types. TypeScript has been doing a phenomenal job.
For this particular use case, since version 3.4 you can write `'x' as const` which will work no matter how large your type is.