title: How to share code between node.js server & browser using Typescript
body: <p>I am planning to do a little multiplayer javascript game with a node.js server (using socket.io) and would like to share some code (mostly classes) between the webclient and the server. So I found this:</p>
  
  <p><a href="https://stackoverflow.com/questions/3225251/how-can-i-share-code-between-node-js-and-the-browser">How can I share code between Node.js and the browser?</a></p>
  
  <p>However I would also like to use Typescript and was wondering how to set it up? What tsconfig.json settings are best suited for this? Do I have to use something like browserify or webpack?</p>