by simplify · 7y ago · 0 comments
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.