3 ms·
yep, sorry about that, I misremembered TypeScript as having the same "kind of enums" as Rust.
by adamrezich 3y ago
yep, sorry about that, I misremembered TypeScript as having the same "kind of enums" as Rust.
- tubthumper8 3y agoTypeScript has discriminated unions if that's what you were thinking of https://www.typescriptlang.org/docs/handbook/2/narrowing.html#discriminated-unions https://www.typescriptlang.org/docs/handbook/2/narrowing.htm...