Rebasely Beta: data may be purged

justintypescript-ultra-strict Public

Text · 10 lines · 270 B · at 8b87e58

// enum emits runtime code and does not narrow. tsus fix --unsafe rewrites it// to a union of literals and inlines Color.Red as "red".enum Color {  Red = "red",  Green = "green",}const paint = (c: Color): string => `painted ${c}`;console.log(paint(Color.Red));