@JanaSunrise@ItsAditya_xyz It's worth it for debugging in the future and getting compile-time errors unlike catching undefined behaviour in the runtime :/
@JanaSunrise@ItsAditya_xyz ^ this tbh, defining types and type hinting the parameters before hand is a major advantage for code maintainability.
TS even makes the code more readable to developers who don't want to read all the documentation you have written. (Referring to JSDoc in this case)