fn emit_enum(out: &mut String, e: &EnumDef)
Emit a TypeScript string union type from an enum definition.