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. …`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
  2. ▲ 1
    TypeScript: Mixin classes
    story by gokhan · 2017-01-30 · 0 comments
  3. …"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
  4. …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
  5. 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
  6. …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
  7. …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
  8. …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
  9. …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
  10. …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
  11. 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
  12. Seems to be missing C# ( https://github.com/dotnet/roslyn ) with 6550 stars and Typescript ( https://github.com/Microsoft/TypeScript ) with 16876 stars.
    comment by CurtHagenlocher · 2016-11-21 · in Most starred interpreters and compilers on GitHub
  13. ▲ 2
    Mapped Types are now in TypeScript master branch
    story by eDameXxX · 2016-11-14 · 0 comments
  14. …types you provide in JSDoc[1] so you will see benefits simply by using VS Code in most cases. [1]: https://github.com/Microsoft/TypeScript/wiki/JSDoc-support-i...
    comment by svieira · 2016-11-03 · in Visual Studio Code 1.7.1
  15. …3 yet, and might still be dropped. That said, there is a TS issue tracking adding support for it: https://github.com/Microsoft/TypeScript/issues/2103 .
  16. …but many of their open source projects use unadulterated OS licenses. Typescript is Apache 2: https://github.com/Microsoft/TypeScript/blob/master/LICENSE.... Visual Studio Code is MIT: https://github.com/Microsoft/vscode/blob/master/LICENSE…
    comment by TAForObvReasons · 2016-10-12 · in Facebook React.js License
  17. I'm fixing that in https://github.com/Microsoft/TypeScript/pull/11267
  18. ▲ 2
    Typescript silently dropping support for Visual Studio 2013
    story by polskibus · 2016-09-29 · 0 comments
  19. And a whole lot more. https://github.com/Microsoft/TypeScript/wiki/Roadmap has a summary of the most important changes.
    comment by wereHamster · 2016-09-22 · in Announcing TypeScript 2.0
  20. …been released yet, but it's super confusing. [1]: https://www.npmjs.com/package/typescript [2]: https://github.com/Microsoft/TypeScript/releases
  21. …expensive tools that everyone have to buy into just to communicate with you once you are locked in. https://github.com/Microsoft/TypeScript is uh... right there. Check the license. Visual Studio code runs Textmate snippets and has a very…
  22. …of the method Agreed! There's an open issue that addresses that scenario (and a ton of others): https://github.com/Microsoft/TypeScript/issues/6606
  23. > I use Typescript 2.0 RC No need to use the RC any more. 2.0 is out! https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T...
  24. …will be returned by Redux's "mapStateToProps" function, and sometimes this object can be big. [0] https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T... [1] https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T...
  25. …apps, VS Code and TypeScript itself are pretty good examples. https://github.com/Microsoft/vscode https://github.com/Microsoft/typescript
    comment by softawre · 2016-09-15 · in Angular 2 Final Released
  26. There are a lot of other new features as well that were introduced in the 2.0-beta release: https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T...
    comment by freditup · 2016-08-30 · in Announcing TypeScript 2.0 RC
  27. …subset of TS. Are your explanations about Flow's strictness really applicable to this subset? See https://github.com/Microsoft/TypeScript/blob/master/doc/spec... > Here's an example that came up just last week: [...] (Note: This is not a…
    comment by thorn0asdf · 2016-08-02 · in Flowtype 0.30 adds support for Windows
  28. ▲ 220
    Love for TypeScript
    story by svieira · 2016-07-30 · 162 comments
  29. …it as a deb package or Mac OS X pkg etc. without having to first install node.js/npm [1]: https://github.com/Microsoft/TypeScript/blob/master/src/comp... [2]: https://discuss.as3lang.org/t/the-case-when-you-dont-want-no...
    comment by zwetan · 2016-07-27 · in Bringing ChakraCore to Linux and OS X
  30. Uhh, yes it is meant to be just annotations + ES6. https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... The exclamination is a forced cast to another type, just like "x as otherType". So this is still in the same category.
    comment by spion · 2016-07-12 · in Announcing TypeScript 2.0 Beta
  31. …`undefined` are subtypes of `any`, so you can still gradually convert to typescript. (according to https://github.com/Microsoft/TypeScript/pull/7140 )
    comment by legulere · 2016-07-11 · in Announcing TypeScript 2.0 Beta
  32. Another interesting addition is discriminated union types: https://github.com/Microsoft/TypeScript/pull/9163 This will greatly facilitate a more functional style of programming.
    comment by ken47 · 2016-07-11 · in Announcing TypeScript 2.0 Beta
  33. There are a _lot_ more features than non-nullable types: https://github.com/Microsoft/TypeScript/wiki/What%27s-new-in...
    comment by spankalee · 2016-07-11 · in Announcing TypeScript 2.0 Beta
  34. …compiler converts your html templates into TS, and then regular TS typechecking can take over. See https://github.com/microsoft/typescript/issues/6508 (and the GIF!)
    comment by robwormald · 2016-06-29 · in Angular 2 – Best Practises
  35. …if I parens on the typeof check, it no longer works: if (typeof(x) === "string") I opened an issue: https://github.com/Microsoft/TypeScript/issues/9391 Thanks for the help!
  36. ▲ 2
    TypeScript just got discriminated unions
    story by iamkeyur · 2016-06-16 · 0 comments
  37. I agree, ADTs would be nice. In fact, we have a pull request out for it right now. [1] :) [1]: https://github.com/Microsoft/TypeScript/pull/9163
    comment by DanRosenwasser · 2016-06-15 · in The Future of TypeScript Declaration Files
  38. …https://github.com/golang/go/graphs/contributors https://github.com/scala/scala/graphs/contributors https://github.com/Microsoft/TypeScript/graphs/contributors
    comment by bcherny · 2016-06-07 · in Show HN: New calendar app idea
  39. What currently is in TypeScript: https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T...
    comment by DJCordhose · 2016-06-07 · in Flow vs. Typescript
  40. Not equivalent - the TS compiler currently does not actually enforce the types in a JS file. See https://github.com/Microsoft/TypeScript/issues/4790#issuecom... The feature of parsing JSDoc comments is currently only used for providing…
    comment by Arnavion · 2016-06-06 · in Flow vs. Typescript
  41. …as types, just more specific, so they're important if one is trying to draw a comparison. [1] https://github.com/Microsoft/TypeScript/wiki/Roadmap#20 [2] https://github.com/Microsoft/TypeScript/milestones
    comment by whatever_dude · 2016-06-06 · in Flow vs. Typescript
  42. …} Is functionally identical to: function foo(a: string, b: number): string { return a + b; } See: https://github.com/Microsoft/TypeScript/issues/4790
    comment by joshuacc · 2016-06-06 · in Flow vs. Typescript
  43. …to embed inot a lot of your files, so a reasonable effort to unwind, that matters. If you compare: https://github.com/Microsoft/TypeScript/milestones and https://github.com/Microsoft/TypeScript/wiki/Roadmap to the lack of information on…
    comment by Bakesteve · 2016-06-06 · in Flow vs. Typescript
  44. Both differences in this presentation are addressed in TypeScript 2.0 https://github.com/Microsoft/TypeScript/wiki/Roadmap#20
    comment by msoad · 2016-06-06 · in Flow vs. Typescript
  45. …an aim of TS to make it easier to continue using JS for those who prefer a half-way house, see: https://github.com/Microsoft/TypeScript/issues/4789
    comment by danielearwicker · 2016-06-06 · in I Was Wrong About TypeScript
  46. see https://github.com/Microsoft/TypeScript/issues/8275
    comment by robwormald · 2016-06-06 · in I Was Wrong About TypeScript
  47. …compiler will* accommodate you by compiling your JS alongside your TS code.[1] * TypeScript 1.8 [1] https://github.com/Microsoft/TypeScript/issues/4792
    comment by ihsw · 2016-06-06 · in I Was Wrong About TypeScript
  48. …[1] c nonullable types [2] [1] https://www.typescriptlang.org/docs/handbook/advanced-types.... [2] https://github.com/Microsoft/TypeScript/pull/7140 As a Scala developer I like Typescript a lot. Which is a first for me in browser…
    comment by joostdevries · 2016-06-05 · in I Was Wrong About TypeScript
  49. …i'd be convenient that any language being used for large projects would support this feature. [1] https://github.com/Microsoft/TypeScript/pull/7140
  50. …and the tree reuse, and so has benefitted from the architecture improvements for service work. [1] https://github.com/Microsoft/TypeScript/pull/8010