• @[email protected]
    link
    fedilink
    51 year ago

    I’ve never used TS, and I’m not exactly sure what nest.js even does, but building a TypeScript project on top of a JavaScript library not designed for it seems like asking for trouble. Is that standard practice?

      • @[email protected]
        link
        fedilink
        1
        edit-2
        1 year ago

        Web dev continues to be cursed, I guess.

        If I really needed to use a JS library in TS, I’d have to build some sort of adapter between the two that crashes whenever the JS library (that doesn’t know anything about your types) breaks the typing rules. Anything else will inevitably lead to the above “fun” kind of bugs.

        • @[email protected]
          link
          fedilink
          11 year ago

          I don’t think that this would work, there are no types anymore during runtime because everything is translated into plain js on build. TypeScript only exists during development