Hacker GitHub

← All repos

microsoft/TypeScript

View on GitHub ↗ ★ 111,716 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. …functions in 2.6 using the compiler flag --strictFunctionTypes as described in this PR https://github.com/Microsoft/TypeScript/pull/18654
  2. …their argument types, which the authors claim is justified for practical reasons. More info here: https://github.com/Microsoft/TypeScript/wiki/FAQ#why-are-fun...
    comment by curryhoward · 2017-11-09 · in Fast and precise type checking for JavaScript
  3. ▲ 1
    Typescript should follow semantic versioning
    story by mulltiq · 2017-11-06 · 0 comments
  4. There's a proposal in the roadmap to deal with this: https://github.com/Microsoft/TypeScript/issues/5453
    comment by zenojevski · 2017-11-01 · in Announcing TypeScript 2.6
  5. …is still in development, but: https://github.com/angular/angular/issues/7482 and the demo gif here: https://github.com/microsoft/typescript/issues/6508 display all those features.
    comment by btown · 2017-11-01 · in Angular 5.0.0
  6. …filter by the "VS Code tracked" label on the TypeScript issues which will give you a rough idea. https://github.com/microsoft/typescript/issues?utf8=%E2%9C%9...
    comment by billti · 2017-11-01 · in VS Code Roadmap 2018
  7. ▲ 2
    Typescript Roadmap
    story by m00dy · 2017-11-01 · 0 comments
  8. …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
  9. You might want to give this a look: https://github.com/Microsoft/TypeScript
  10. …"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
  11. …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
  12. > 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
  13. …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
  14. 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
  15. …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
  16. 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
  17. …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
  18. This is how the TypeScript team fixed this issue: https://github.com/Microsoft/TypeScript/pull/15011
  19. ▲ 221
    TypeScripts Type System Is Turing Complete
    story by supermdguy · 2017-08-01 · 88 comments
  20. …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
  21. 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
  22. …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
  23. …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
  24. …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
  25. 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
  26. …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
  27. …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
  28. …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
  29. 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
  30. …} 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
  31. …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
  32. ▲ 2
    Typechecking JavaScript Files with Typescript
    story by tomduncalf · 2017-05-09 · 0 comments
  33. 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
  34. …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
  35. …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
  36. …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
  37. …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
  38. …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
  39. …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.
  40. …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
  41. …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
  42. …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
  43. …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
  44. …[2] https://github.com/jsdf/coffee-react-transform/issues/62 [3] https://github.com/Microsoft/TypeScript/issues/13884
  45. ▲ 1
    TypeScript's Type System Is Turing Complete
    story by wwwigham · 2017-03-25 · 0 comments
  46. …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
  47. I believe that one area where TS could stand some improvement are multi-package projects. https://github.com/Microsoft/TypeScript/issues/3469
  48. 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
  49. …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
  50. …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