4 ms·
I don't depend on the actual typescript docs much but thankfully in @types and in tons of repos there are examples of well written typescript code. The amount
by harrisonjackson 4y ago
I don't depend on the actual typescript docs much but thankfully in @types and in tons of repos there are examples of well written typescript code.
The amount of JS and TS out there is also a bit of a foot gun though so stick with heavily used/starred libs if you aren't sure.
One tool that helps a lot with developing libraries in typescript is TSDX[0] or its successor dts-cli[1] and there is a bunch of good stuff in awesesome-typescript[2].
Maybe library devving is harder?(more work?) with tyepscript but it is worth it for the end developer, especially if that end developer is you. If you aren't using your own libs then you're probably getting paid by someone else to make them or... idk.
[0] https://github.com/jaredpalmer/tsdx https://github.com/jaredpalmer/tsdx
[1] https://github.com/weiran-zsd/dts-cli https://github.com/weiran-zsd/dts-cli
[2] https://github.com/dzharii/awesome-typescript#libraries https://github.com/dzharii/awesome-typescript#libraries