Node.js Server Side applications written in Typescript vs JS (ES5) : <p>Note: By regular js I refer to the <strong>ES5</strong> version of js. </p>

<p>I am currently setting up the foundation to a project. The tech stack that I currently have choosen to go with is <strong>Node.js</strong> for the back-end w/ <strong>Angular2</strong> for the front-end/client-side and I am using Gulp as my build tool. In addition I have chosen to use <strong>Typescript</strong> for Angular. </p>

<p>I have already set up the gulpfile to do everything necessary for an optimal Typescript build. In fact the way I set everything up gulp can handle all the Typescript in the application, which led me to the realization it might be useful to write the whole application in Typescript vs regular (Node.js - Server) js. Although, when looking for pros and cons of doing so I have been unable to find any real references and instances where people recommend doing so or if it is better to just write the server side of the application without utilizing TS.</p>

<p><strong>In short my question</strong>: Is it optimal to write the back and front end utilizing the Javascript superset Typescript? Are there any real Pros or Cons? I would appreciate any 'real' experiences. For example if there where any hurdles/workarounds that occurred or what made TS in server and client optimal in your case?</p>

<p>Thank you in advance, have a great day!</p>
