title: Would Typescript solve these backend's environment unpredictable changes?
body: <p>I was developing a web application some days ago with PHP for backend and Vue for frontend. The developer environment was my PC and everything was working very well, but when I've deployed it to a server, things changed.</p>
  
  <p>In my PC, when a boolean had to be answered by a request, it was returned as an integer 0 or 1. In the production it was returned as string "0" or "1". I know that in javascript I can use the == operator to reach my objective, but my question here is: would Typescript solve this issue?</p>