hypertown@lemmy.world to Programmer Humor@lemmy.ml · 1 year agoAverage TS developerlemmy.worldimagemessage-square136fedilinkarrow-up1825arrow-down148
arrow-up1777arrow-down1imageAverage TS developerlemmy.worldhypertown@lemmy.world to Programmer Humor@lemmy.ml · 1 year agomessage-square136fedilink
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up5·1 year 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-21 year 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.