---
title: "renkinjutsushi (@renkinjutsushi) | Hashnode"
description: "swe. Read the latest articles by renkinjutsushi on Hashnode."
url: "https://hashnode.com/@renkinjutsushi"
---

@renkinjutsushi

# renkinjutsushi

@renkinjutsushi · Joined April 2025

swe

## Comments

[What if the UI would send 'Go' to the API but the instruction would need to be translated into the enum value? In this case it would be 2. Would we use a reverse map for the instructions? i.e. "const fromInstructions = new Map(\[ \["Stop", TrafficLight.Red\], \["Slow down", TrafficLight.Yellow\], \["Go", TrafficLight.Green\], \]);" Or do you reckon it would be ok keeping them in the same instructions map?](https://hashnode.com/posts/in-defence-of-typescript-enums/67eae66767c03ec6e67a8760/comment/67f7a175703a4870e57dcaac)

Comment · Article · Apr 10, 2025 · [In Defence of Typescript Enums](https://hashnode.com/posts/in-defence-of-typescript-enums/67eae66767c03ec6e67a8760)
