![Andrew Branch Profile](https://pbs.twimg.com/profile_images/1580232558733688839/5gTHprmu_x96.jpg)
Andrew Branch
@atcb
Followers
3K
Following
6K
Statuses
3K
Working on TypeScript at Microsoft. I appear when someone says “module resolution” three times in the dark. He/him
San Rafael, CA
Joined January 2013
RT @satanacchio: Node.js v23.6.0 is out! 🥳🎉 This release enables the flag --experimental-strip-types by default. Node.js will execute Type…
0
169
0
@ballingt But I mean, for some import that results in TS loading `a/dist/esm-types`, is the same import meaningful at runtime, e.g. will it load a value in Node.js? In other words, do any of the types describe the exports of a JS module, or is it purely a collection of types?
1
0
0
@mitschabaude But Node doesn't do type stripping inside node_modules, so if you're writing a library, you're in this situation where you can run TS during development, but you need to publish JS files. That makes it impossible to satisfy our rule of "write the specifier that works at runtime."
0
0
3
@bradleymeck @devongovett This is possibly the thing I most wish people understood about TypeScript
0
0
2
@wooorm @robpalmer2 @remcohaszing @ssalbdivad @johnny_reilly Yeah. Put another way: compile .ts and/or .js files, publish .js and .d.ts files. If you’re skipping the compilation step, you’re authoring .js and .d.ts.
0
0
2
Editing with @britto_gab's work on region-prioritized diagnostics has been so great: > in our testing on TypeScript’s own checker.ts, a full semantic diagnostics response took 3330ms. In contrast, the response for the first region-based diagnostics response took 143ms! 👏
The release candidate for TypeScript 5.6 is now available for testing! Give it a try today for more new checks, ways to speed-up your builds, new JS features, and more!
1
1
21
RT @johnny_reilly: Dual publishing ESM and CJS is hard. Getting the types incorrect in your package.json is disappointingly easy. If you wa…
0
6
0
@craciun_07 @mattpocockuk The output is indeed wrong, though it’s not always super meaningful to discuss tsc emit when errors are present. But the whole idea of `verbatimModuleSyntax` is that anything not marked with `type` gets preserved.
1
0
2