The question of whether this is a good practice? Can I use packages from npm without any problems, or some third-party scripts / classes written in js? We need all the pros and cons of this approach, I want to know whether it is worth starting a nodejs project on ts, or limit es6.

ps I read that in ts 1.8 there is some kind of thing that adapts any code with little effort, but I don’t know how effective it is

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants cheops , aleksandr barakin , D-side , Athari , Streletz 21 Jun '16 at 9:23 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    There are definitions for typescript: https://github.com/soywiz/typescript-node-definitions

    But it has been updated for a long time, as I’m doing now, I don’t know, support can be bad. And this means that in the end you can rest on the problem and have to finish the declaration. I would not recommend using it.

    In addition, there are problems with the fact that TypeScript, like other translators, frameworks and libraries are specific: not everyone knows them, not all problems are known, and some non-standard tasks lead you to understand and sometimes change the insides of these systems.

    • thanks) by the way, I read that in ts 1.8 there is some sort of thing that effortlessly adapts any code, but I don’t know how effective it is - sanu0074
    • one
      I can’t say anything here, I worked with him a year ago, maybe it’s really not a problem now. But one thing remains: the web is developing very rapidly - any technology that is popular today is no longer relevant tomorrow. If the library can be cut out, then in your case this could result in rewriting the project. - Aleksander K.
    • @AleksanderK. don't be so scary. If you then have to abandon TypeScript, then it can be done not immediately, but modularly. - Pavel Mayorov
    • @PavelMayorov Well, in general, yes, but still rewrite) Although yes, I have to admit that the translation result code is quite readable. - Aleksander K.
    • simply put on js - Serge Esmanovich