4 ms·
The type system in TypeScript can compose types from string literals using a similar syntax. Obviously, this is runtime code, not a type declaration, but you c
by swatcoder 3y ago
The type system in TypeScript can compose types from string literals using a similar syntax.
Obviously, this is runtime code, not a type declaration, but you can see how a new or tired/busy developer’s brain might spit this out in the wrong place.