hypertown@lemmy.world to Programmer Humor@lemmy.ml · 11 months agoAverage TS developerlemmy.worldimagemessage-square136fedilinkarrow-up1824arrow-down148
arrow-up1776arrow-down1imageAverage TS developerlemmy.worldhypertown@lemmy.world to Programmer Humor@lemmy.ml · 11 months agomessage-square136fedilink
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up5·11 months agoI’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?
minus-squaresloppy_diffuser@sh.itjust.workslinkfedilinkEnglisharrow-up3·edit-211 months agoYes. As of this writing there are 7,738 type definitions in a central repo maintained by users for plain JavaScript packages. https://github.com/DefinitelyTyped/DefinitelyTyped Many package owners write type definitions included with their package that is written in JavaScript also.
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?
Yes. As of this writing there are 7,738 type definitions in a central repo maintained by users for plain JavaScript packages.
https://github.com/DefinitelyTyped/DefinitelyTyped
Many package owners write type definitions included with their package that is written in JavaScript also.