Hacker GitHub

← All repos

microsoft/TypeScript

View on GitHub ↗ ★ 111,725 Go

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

617 mentions on Hacker News by 467 people: 78 stories, 539 comments · first 2014-07-23 · latest 2026-10-20

Mentions per year 617 mentions · busiest year 2022 (79)
20082026
  1. …or so), and you can set your expectations with the Roadmap[1]. Hope you enjoy the release! [1] https://github.com/Microsoft/TypeScript/wiki/Roadmap
    comment by DanRosenwasser · 2017-11-01 · in Announcing TypeScript 2.6
  2. You might want to give this a look: https://github.com/Microsoft/TypeScript
  3. …"recovery" in the TypeScript parser which is used to provide Language Services for the VSCode IDE. https://github.com/Microsoft/TypeScript/blob/master/src/comp... Automatic Error Recovery using heuristics can also be implemented by parsing…
    comment by bd82 · 2017-10-17 · in Ohm: Parsing Made Easy
  4. …great experience,! Even these (occasional) "breaking" changes are relatively easy to navigate. [0]: https://github.com/Microsoft/TypeScript/pull/18654#issuecomm... [1]: https://blogs.msdn.microsoft.com/typescript/2017/10/02/types...
    comment by styfle · 2017-10-13 · in Announcing TypeScript 2.6 RC
  5. > I just figures it out through... I have never thought about it. https://github.com/Microsoft/TypeScript/wiki/JavaScript-Lang... > Visual Studio 2017 provides a powerful JavaScript editing experience right out of the box. Powered by a…
    comment by cwyers · 2017-10-02 · in Diminishing returns of static typing
  6. …were initially only supported when transpiling to ES6, but this is not true since at least 2.2 ( https://github.com/Microsoft/TypeScript/issues/5210 ).
    comment by pafje · 2017-09-13 · in Flow and TypeScript
  7. Object.freeze can't be typed properly right now in TypeScript: https://github.com/Microsoft/TypeScript/issues/10725 TypeScript doesn't support deep readonly, which would be really helpful for Redux, where you're required to copy anything…
    comment by lucasmullens · 2017-08-28 · in BuckleScript: An OCaml to JavaScript compiler
  8. …about or skeptical of TypeScript, do yourself a favor and check out the source code sometime: https://github.com/microsoft/typescript It's a work of art, everything is so practical and (relatively) easy to understand. Even better, it's…
    comment by guscost · 2017-08-20 · in Reservations about TypeScript
  9. This gives an explanation of why they made the choice: https://github.com/Microsoft/TypeScript/wiki/FAQ#why-are-fun... Also, FWIW, in my experience, I don't think I've ever actually run into a problem with this in real code.
    comment by nkohari · 2017-08-20 · in Reservations about TypeScript
  10. …types[2], if/when those get implemented, though I'm not sure how that'd work exactly. [1] https://github.com/Microsoft/TypeScript/issues/5453 [2] https://github.com/Microsoft/TypeScript/issues/6579
    comment by andrewfong · 2017-08-04 · in Typed Routes with TypeScript
  11. This is how the TypeScript team fixed this issue: https://github.com/Microsoft/TypeScript/pull/15011
  12. …The current roadblock seems to be getting function return types. Progress, for anyone interested: https://github.com/Microsoft/TypeScript/issues/16392 At this point I'm amazed how close we are to typing anything, despite having only 5 (!)…
    comment by tycho01 · 2017-07-03 · in Why We Chose Typescript
  13. TypeScript can use JSdoc annotations: https://github.com/Microsoft/TypeScript/wiki/JsDoc-support-i...
    comment by moogly · 2017-07-01 · in Why We Chose Typescript
  14. …of attention. Apologies, my memory gets optimistically fuzzy when I swoon over a language. ;) [0]: https://github.com/Microsoft/TypeScript/issues/6579
    comment by fny · 2017-07-01 · in Why We Chose Typescript
  15. …does look like this release has no? Salsa-related fixes or improvements, so it doesn't surprise me. https://github.com/Microsoft/TypeScript/issues/15809
    comment by pitaj · 2017-06-27 · in TypeScript 2.4
  16. …polyfill for Map and Set). TypeScript 2.3 has support for vue.js this injection style patterns (see https://github.com/Microsoft/TypeScript/pull/14141 ) which are way out of the realm of class-centric programming languages. Similarly the…
    comment by mohamedhegazy · 2017-06-27 · in TypeScript 2.4
  17. Looking forward to the string enums! I've been using https://github.com/Microsoft/TypeScript/issues/3192#issuecom... but it'll be nice to have this built-in.
    comment by cletusw · 2017-06-12 · in TypeScript 2.4 RC
  18. …that can be reasonably addressed in a future TS release: See for example: - Nominal types proposal https://github.com/Microsoft/TypeScript/issues/202 - Co/contravariance annotations proposal https://github.com/Microsoft/TypeScript/issues/10…
    comment by bcherny · 2017-06-03 · in TypeScript support in Electron
  19. …Flow example, where it's just an annotation. There are hacks and other approaches, documented here: https://github.com/Microsoft/TypeScript/issues/6606
    comment by silviogutierrez · 2017-06-02 · in TypeScript support in Electron
  20. …I won't go into them one by one, but you can jump into most of the issues here to get a sense: https://github.com/Microsoft/TypeScript/issues?utf8=&q=Sound... https://github.com/Microsoft/TypeScript/issues?utf8=&q=unsou... I won't take a…
    comment by tekacs · 2017-06-02 · in TypeScript support in Electron
  21. it'll throw an error if a parameter is undefined, and https://github.com/Microsoft/TypeScript/issues/15333 which lands in the next version auto-suggests spelling corrections as well
    comment by rcchen · 2017-06-02 · in TypeScript support in Electron
  22. …} I would much prefer if they just added a new keyword to the language, instead of hacks like this. https://github.com/Microsoft/TypeScript/issues/202
    comment by realharo · 2017-05-19 · in Kotlin is like TypeScript
  23. …ones have the value `undefined` (unfortunate that strictNullChecks doesn't catch things like that https://github.com/Microsoft/TypeScript/issues/8476 ). And for some nitpicking, please be consistent with your semicolons, either use them or…
    comment by realharo · 2017-05-19 · in Kotlin is like TypeScript
  24. Looks like the Promise example will be fixed in TypeScript 2.3.1 https://github.com/Microsoft/TypeScript/issues/14770
    comment by 2bit · 2017-04-29 · in TypeScript 2.3
  25. …resolver (what Flow uses) is more usable, but there is a strong argument against it too [0]. [0] https://github.com/Microsoft/TypeScript/issues/15114
    comment by bcherny · 2017-04-27 · in TypeScript 2.3
  26. …Promises[1] and for Bluebird[2], you can clearly see that those are identical in this case.. [1]: https://github.com/Microsoft/TypeScript/blob/master/lib/lib.... [2]: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/mast...
    comment by andreypopp · 2017-04-27 · in TypeScript 2.3
  27. …type alias in a non-breaking way much easier which is very powerfull in a large code base. [0]: https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T...
    comment by fahrradflucht · 2017-04-27 · in TypeScript 2.3
  28. …Comments for types in .js files with `--allowJs`. you do not need to change your code for that. See https://github.com/Microsoft/TypeScript/wiki/JSDoc-support-i...
    comment by mohamedhegazy · 2017-04-27 · in TypeScript 2.3
  29. …from your original assessment that there is a fundamental difference between the languages. [1]: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... - goal 6
    comment by spion · 2017-04-14 · in TypeScript at Slack
  30. …I didn't really run into any nasty side-effects or things that went wrong with it. See https://github.com/Microsoft/TypeScript/wiki/What%27s-new-in... for a (short) explanation.
  31. …for that: interface Baz { foo?: string; } let bar = (t: Baz) => // yes, I'm sure t.foo!.length; https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T...
    comment by ash · 2017-04-12 · in TypeScript at Slack
  32. …where fat arrow was two years ago). New operators are likely to fall in the awkward middle." [ https://github.com/Microsoft/TypeScript/issues/16 ]
    comment by curveship · 2017-04-12 · in TypeScript at Slack
  33. …and e.g. turn down feature proposals that aren't far enough along in the standards process. See https://github.com/Microsoft/TypeScript/issues/16 for a feature users are begging for that they aren't implementing. Another good example is…
    comment by evmar · 2017-04-11 · in TypeScript at Slack
  34. …sure what the difference between Flow and TypeScript was. Here's a fairly comprehensive list: https://github.com/Microsoft/TypeScript/issues/1265
    comment by icc97 · 2017-04-08 · in React v15.5.0
  35. …[2] https://github.com/jsdf/coffee-react-transform/issues/62 [3] https://github.com/Microsoft/TypeScript/issues/13884
  36. …pay great attention to the community. If you want to see it happen, this is the issue to vote on: https://github.com/Microsoft/TypeScript/issues/9694
  37. I believe that one area where TS could stand some improvement are multi-package projects. https://github.com/Microsoft/TypeScript/issues/3469
  38. Here is a Typescript discussion on the issue: https://github.com/Microsoft/TypeScript/issues/8
    comment by 0xcoffee · 2017-03-19 · in Comparing the Closure compiler to Uglify
  39. …but fine with comments then you can just put all of your typing information in jsdoc comments. https://github.com/Microsoft/TypeScript/wiki/JSDoc-support-i...
    comment by dsp1234 · 2017-02-22 · in Announcing TypeScript 2.2
  40. …doesn't have the ability to say "Any type except X, Y and Z". So a new type was needed for this. https://github.com/Microsoft/TypeScript/issues/1809
    comment by dsp1234 · 2017-02-22 · in Announcing TypeScript 2.2
  41. …`strictNullChecks` in general has a huge hole in that it allows uninitialized properties ( https://github.com/Microsoft/TypeScript/issues/8476 ).
    comment by realharo · 2017-02-22 · in Announcing TypeScript 2.2
  42. …"A possible FIX if you really want two types to be incompatible is to add a 'brand' member"... https://github.com/Microsoft/TypeScript/wiki/FAQ#type-system...
    comment by automatwon · 2017-01-08 · in Returning to JavaScript After 5 Years
  43. …both the == and === operators. A problem beyond type-safety is the confusing semantics of 'this': https://github.com/Microsoft/TypeScript/wiki/'this'-in-TypeS...
    comment by automatwon · 2017-01-07 · in Returning to JavaScript After 5 Years
  44. It's not possible to add extension methods to TS in a way that would be usable in practice. https://github.com/Microsoft/TypeScript/issues/9 has a long discussion of the problems with trying to do this.
    comment by RyanCavanaugh · 2016-12-08 · in Announcing TypeScript 2.1
  45. …This is the one answer I was looking for. And it seems to be very recent, committed Nov 7 for 2.1: https://github.com/Microsoft/TypeScript/pull/12160/commits/7... Looking at the discussion on GitHub for the issue that lead to this commit…
    comment by Noseshine · 2016-12-08 · in Announcing TypeScript 2.1
  46. …programming though, the above list should cover the vast majority of interesting features. [1]: https://github.com/Microsoft/TypeScript/issues/1213 [2]: https://hackage.haskell.org/package/vinyl-0.5.2/docs/Data-Vi... [3]:…
    comment by spion · 2016-12-08 · in Announcing TypeScript 2.1
  47. …there. Turns out they implement two case statements, and handle every possible control structure. https://github.com/Microsoft/TypeScript/issues/1664
    comment by euroclydon · 2016-12-07 · in Announcing TypeScript 2.1
  48. …supports a subset of what Closure does - so anything here should be portable between the two: https://github.com/Microsoft/TypeScript/wiki/JSDoc-support-i...
    comment by nevir · 2016-12-06 · in Closure Compiler in JavaScript
  49. …supporting the ES7 "spread" operator, since row variable is the obvious typed counterpart to that: https://github.com/Microsoft/TypeScript/issues/2103 but they ended up implementing just the operator, without a way to reflect it in a…
    comment by int_19h · 2016-11-27 · in Typed, modular macros for OCaml
  50. Yes, I believe it uses https://www.npmjs.com/package/types-registry now, going by https://github.com/Microsoft/TypeScript/blob/a8ef77c3/src/se...
    comment by Arnavion · 2016-11-22 · in Visual Studio Code 1.7.2