4 ms·
This is one of the joys of TypeScript. Some of my coworkers complain about being required to use TS instead of JS, and I just wonder why in the world you would
by bigyikes 6y ago
This is one of the joys of TypeScript.
Some of my coworkers complain about being required to use TS instead of JS, and I just wonder why in the world you would want to use JS in a massive codebase.
- IshKebab 6y agoIt is, although the syntax for proper sum types (it calls them "discriminated unions") is really verbose in Typescript. I wish they'd make it more terse so people didn't use untagged sum types and hacks like `typeof` all the time.