Search code examples
typescriptsails.jsloopbackjshapi.jskraken.js

Is Typescript completely compatible with Loopback, Sails, Hapi, and Kraken?


Our firm is choosing a Javascript framework to write a large app with server logic and a RESTful API.

Since we're using Typescript for everything I was worried to see that some frameworks might have issues with it - i.e. they expect Javascript formatted a very specific way.

Can anyone who's actually worked with one of these frameworks in Typescript tell me if there are any problems we'll run into using any of the four major frameworks: Loopback, Sails, Hapi, Kraken?


Solution

  • Can anyone who's actually worked with one of these frameworks in Typescript tell me if there are any problems we'll run into using any of the four major frameworks

    Any issues you face will be with JavaScript. Valid JavaScript is valid TypeScript. Most issues in a conversion process can be silenced with using any type.