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. 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
  2. …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
  3. …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 .
  4. …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
  5. I'm fixing that in https://github.com/Microsoft/TypeScript/pull/11267
  6. 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
  7. …been released yet, but it's super confusing. [1]: https://www.npmjs.com/package/typescript [2]: https://github.com/Microsoft/TypeScript/releases
  8. …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…
  9. …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
  10. > 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...
  11. …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...
  12. …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
  13. 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
  14. …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
  15. …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
  16. 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
  17. …`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
  18. 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
  19. 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
  20. …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
  21. …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!
  22. 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
  23. …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
  24. 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
  25. 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
  26. …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
  27. …} 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
  28. …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
  29. 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
  30. …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
  31. see https://github.com/Microsoft/TypeScript/issues/8275
    comment by robwormald · 2016-06-06 · in I Was Wrong About TypeScript
  32. …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
  33. …[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
  34. …i'd be convenient that any language being used for large projects would support this feature. [1] https://github.com/Microsoft/TypeScript/pull/7140
  35. …and the tree reuse, and so has benefitted from the architecture improvements for service work. [1] https://github.com/Microsoft/TypeScript/pull/8010
  36. …peers (who are very satisfied with a perfect ABNF and a parser which strictly adheres to it). [1] https://github.com/Microsoft/TypeScript [2] https://github.com/Microsoft/TypeScript/labels/Effort%3A%20E...
  37. …tooling integrations we'll get from Typescript - there's a cool GIF in this issue tracking the work https://github.com/Microsoft/TypeScript/issues/6508
    comment by robwormald · 2016-05-03 · in Angular 2 Release Candidate
  38. …features coming to the type system that brings it closer to parity with Flow: Non-nullable types: https://github.com/Microsoft/TypeScript/pull/7140 Control flow type analysis: https://github.com/Microsoft/TypeScript/pull/8010 I wish…
    comment by avolcano · 2016-04-27 · in TypeScript Won
  39. …compile everything in the "src" directory, my best option is to exclude every other directory. [0] https://github.com/Microsoft/TypeScript/issues/983
    comment by jdmichal · 2016-04-27 · in TypeScript Won
  40. If you are using typescript, you should read: https://github.com/Microsoft/TypeScript/issues/7270 TLD'R: React 15.0 broke TSX in typescript but the workaround is easy.
    comment by kuon · 2016-04-07 · in React v15.0
  41. …want saner scoping rules. We should definitely update the docs to use let everywhere, though. [1]: https://github.com/Microsoft/TypeScript/issues/5822#issuecom...
    comment by egeozcan · 2016-03-21 · in Non-nullable types for TypeScript
  42. …I filed. I was flabbergasted when I was told it was by design, to match JavaScript. The issue: https://github.com/Microsoft/TypeScript/issues/5822
    comment by ridiculous_fish · 2016-03-21 · in Non-nullable types for TypeScript
  43. Well, with the last release, typescriot supposedly can compile plain js. https://github.com/Microsoft/TypeScript/wiki/What%27s-new-in... That should make it simple to treat ts more strict than js.
    comment by geon · 2016-03-21 · in Non-nullable types for TypeScript
  44. …tps://github.com/jeffmo/es-class-fields-and-static-propert... or Support ES7: exponentiation operator https://github.com/Microsoft/TypeScript/issues/4812 Typescript seems to be more like ECMAScript.next + types rather than ES6 + types.
  45. …is the spread/rest syntax which is sometimes used in React projects isn't fully supported in TS: https://github.com/Microsoft/TypeScript/issues/2103 . I should point out you can use Babel and Typescript, so the Babel processes the output…
  46. …to the type system on the roadmap, for example support for non-nullable and variadic types: https://github.com/Microsoft/TypeScript/wiki/Roadmap Typescript may not be perfect but I'm glad to see it getting more attention as I think it can…
  47. …structural checking of interfaces right, but I beleive (correct me if I'm wrong, I'm referring to https://github.com/Microsoft/TypeScript/issues/202 ) that classes are also structurally checked. Flow does nominal checking for those, with…
    comment by shados · 2016-03-12 · in State of the Art JavaScript in 2016
  48. For a more complete list of features, check out our What's New in TypeScript page: https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T...
    comment by DanRosenwasser · 2016-02-22 · in Announcing TypeScript 1.8
  49. I think you're misunderstanding the feature, see here for more info: https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T...
    comment by orf · 2016-01-28 · in Announcing TypeScript 1.8 Beta
  50. According to https://github.com/Microsoft/TypeScript/wiki/JSX , there are two JSX processing options. The first is a JSX passthru ("preserve" mode) and the second ("react" mode) will generate React.createElement, etc. See that page for the…
    comment by saidajigumi · 2016-01-28 · in Announcing TypeScript 1.8 Beta