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. …is your (sometimes valid) choice. > Gradual typing CANNOT be sound TypeScript isn't sound [0]. [0] https://github.com/Microsoft/TypeScript/issues/9825
    comment by eatonphil · 2019-09-04 · in TypeScript vs. ReasonML
  2. Just FYI, TypeScript is expressly a superset of JavaScript, so you don't need to guess! https://github.com/Microsoft/TypeScript TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
    comment by jdmichal · 2019-09-04 · in ORMs Are Backwards
  3. https://github.com/microsoft/TypeScript/issues/16#issuecomme...
    comment by city41 · 2019-08-29 · in TypeScript 3.6
  4. …jsdoc. In fact, the TS team uses chrome devtools as a test case to validate their jsdoc interop: https://github.com/microsoft/TypeScript/tree/master/tests/ca...
    comment by hoten · 2019-08-29 · in TypeScript 3.6
  5. …TS being so close to have it, that's great news EDIT: here is the confirmation TS 3.7.0 got tagged: https://github.com/microsoft/TypeScript/issues/16#issuecomme... EDIT 2: wow just noticed, that the issue ID is "16" and it has been open…
    comment by chriswwweb · 2019-07-30 · in What’s New in ES2019
  6. ▲ 3
    TypeScript 3.7.0 will feature optional chaining (i.e. x?.y)
    story by jobstijl · 2019-07-27 · 0 comments
  7. ▲ 2
    After 5 years of waiting: Safe navigation can land in TypeScript 3.7
    story by exelib · 2019-07-25 · 0 comments
  8. …lines of handwritten code in a single file, which is getting up there for a high-level language: https://github.com/microsoft/TypeScript/blob/master/src/comp...
    comment by billti · 2019-07-12 · in QuickJS JavaScript Engine
  9. …why they don't add them already. Also of course any form of runtime type checking is missing. [1] https://github.com/Microsoft/Typescript/issues/202
    comment by phiresky · 2019-07-01 · in What I Want from a Type System (2016)
  10. …a language. [EDIT] - after some searching, maybe you're referring to this issue (amongst others): https://github.com/Microsoft/TypeScript/issues/9825 [0]: https://djcordhose.github.io/flow-vs-typescript/flow-typescr...
    comment by hardwaresofton · 2019-06-24 · in Haskell Fan Site
  11. …ideas for improvements to TypeScript's documentation or website, we're currently asking for ideas: https://github.com/microsoft/TypeScript/issues/31983
  12. Nice overview! I plan on building a larger version of this into the docs eventually https://github.com/microsoft/TypeScript/issues/31983#issueco...
  13. …have been talking about how TypeScript's type system is (intentionally) unsound. For example see https://github.com/Microsoft/TypeScript/wiki/FAQ#why-are-fun... and the notes on soundness in https://www.typescriptlang.org/docs/handbook/type…
    comment by matt_kantor · 2019-05-30 · in TypeScript 3.5
  14. > especially now that they've added HKTs Hmm .. as far as I'm aware, they haven't added this yet: https://github.com/microsoft/TypeScript/issues/1213 Note that higher-kinded types (though I'd rather call it "higher-kinded polymorphism" or…
    comment by maxdamantus · 2019-05-29 · in TypeScript 3.5
  15. …which can also be pretty heavy. We're considering ways we can avoid a full type check: https://github.com/microsoft/TypeScript/issues/31417 In the meantime, you can try out turning on the `skipLibCheck` compiler option to see if that helps…
    comment by DanRosenwasser · 2019-05-29 · in TypeScript 3.5
  16. …with a GitHub issue [0] for adding the option to skip checking, but didn't see anything myself. [0] https://github.com/Microsoft/TypeScript/issues/29651
    comment by PaulBGD_ · 2019-05-29 · in TypeScript 3.5
  17. …checking and doing async checking during the dev process which speeds things up quite a bit. [1] https://github.com/Microsoft/TypeScript/issues/30663
    comment by parhamn · 2019-05-29 · in TypeScript 3.5
  18. ▲ 1
    TypeScript: Trade-offs in Control Flow Analysis
    story by lexy0202 · 2019-04-25 · 0 comments
  19. …at this project (a random pick) with all those (virtual) safeguards, result: over 3600 issues!!! https://github.com/Microsoft/TypeScript I mean 3600+ issues, WTF!! And I should be using this tool to prevent issues in my software? Sometimes…
    comment by black-alert · 2019-04-22 · in JavaScript debuggers are broken
  20. …a bit difficult to define a value as completely readonly in TypeScript. See this GitHub issue: https://github.com/Microsoft/TypeScript/issues/13923
  21. It might have been --declarationMap, part of Typescript 2.9 https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T... Jumping to definition works with typescript projects correctly when this is turned on, but it's still not a…
  22. …named generics by using a single generic argument with named properties, inspired by this comment: https://github.com/Microsoft/TypeScript/pull/23696#issuecomm... But it's incredibly verbose, and doesn't support optional generic arguments…
  23. …works when you consume the exports of the file but it doesn't when you're within that file (see https://github.com/Microsoft/TypeScript/issues/30304 ) which makes it useless imo. Also even if it worked, now that I think about it, I'm again…
  24. …supported by the TypeScript powered tooling which VS Code provides by default on an JS project. https://github.com/Microsoft/TypeScript/wiki/JsDoc-support-i...
  25. Apparently, Typescript type system is already Turing-complete: https://github.com/Microsoft/TypeScript/issues/14833
    comment by mickael · 2019-03-31 · in TypeScript 3.4
  26. They actually just merged a very important PR: https://github.com/Microsoft/TypeScript/pull/30215 It adds inference for higher order functions, and, from a bit of playing with the Typescript nightly build, ramda works much better. Once 3.4…
  27. …to TypeScript for more productivity and safer development. Check this out if you haven't already: https://github.com/Microsoft/TypeScript/wiki/Type-Checking-J... Even if without any annotations, type inferencing can catch some bugs for you.
    comment by gridlockd · 2019-03-16 · in Ask HN: Is jQuery on its way out?
  28. …it (their plan is hinged on an existing standard that is still being locked down for JS; details in https://github.com/Microsoft/TypeScript/issues/16 ). No real benefit in voting on it now, other than to express your added desire for a…
  29. ▲ 15
    TypeScript: Vote for Experimental Support of Optional Chaining
    story by IvanGoncharov · 2019-03-01 · 13 comments
  30. …of libraries [0] and I'm fully intending to drop Flow for TS. The single thing I'm waiting for is https://github.com/Microsoft/TypeScript/issues/21699 since we use a fair amount of custom jsx rendering [1]. That's the one main thing (for…
    comment by bluepnume · 2019-01-25 · in Yarn's Future – v2 and beyond
  31. …want to do this yourself it's fairly trivial, the TS compiler API is at least documented somewhat: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compi... And of course you can read the source code for Webpack's typescript support.…
    comment by jchw · 2019-01-24 · in Yarn's Future – v2 and beyond
  32. …and importantly it's still improving rapidly. You may be interested in the roadmap/changelog page: https://github.com/Microsoft/TypeScript/wiki/Roadmap
    comment by nicoburns · 2019-01-24 · in Yarn's Future – v2 and beyond
  33. TypeScript works with JSDoc annotations: https://github.com/Microsoft/TypeScript/wiki/JsDoc-support-i...
    comment by _hardwaregeek · 2019-01-24 · in Yarn's Future – v2 and beyond
  34. BINGO! I suggested this to typescript repo: https://github.com/Microsoft/TypeScript/issues/28337 Feel free to comment on it, but it seems it's impossible that they implement such kind of thing without breaking their "principles".
    comment by knocte · 2019-01-23 · in TypeScript Tricks: Type Guards
  35. …the compiler any time soon. It's a shame because it would make a lot of my code more robust. [1]: https://github.com/Microsoft/TypeScript/issues/10734#issueco...
    comment by benschulz · 2019-01-23 · in TypeScript Tricks: Type Guards
  36. https://github.com/Microsoft/TypeScript/wiki/Type-Checking-J...
    comment by _9vpl · 2019-01-18 · in Future of TypeScript on ESLint
  37. ▲ 1
    TypeScript 2019 Roadmap
    story by GordonS · 2019-01-17 · 0 comments
  38. …com/flow-type/hiding-implementation-details-w... [2] https://flow.org/en/docs/types/opaque-types/ [3] https://github.com/Microsoft/TypeScript/issues/15807#issueco...
    comment by jamesisaac · 2019-01-16 · in Migrate Jest to TypeScript
  39. https://github.com/Microsoft/TypeScript/commit/d3b7058c2999f... over a year.
    comment by PudgePacket · 2019-01-16 · in Migrate Jest to TypeScript
  40. …ugly, or very easy to be misleading, typeguards (granted, TS doesn't have decent typeguards, see https://github.com/Microsoft/TypeScript/issues/28337 ...). For these reasons, I applaud JS people moving to TS. But I will not recommend any…
    comment by knocte · 2019-01-16 · in Migrate Jest to TypeScript
  41. …leave this link here :-) [2] 1: https://www.typescriptlang.org/docs/handbook/release-notes/t... 2: https://github.com/Microsoft/TypeScript/issues/14833
  42. …in turn forces you to either resort to copy & paste coding, or fighting with the compiler. See https://github.com/Microsoft/TypeScript/issues/5863 for example.
  43. Ah, and there is at least one PR specifically for it: https://github.com/Microsoft/TypeScript/pull/25716
  44. There's an issue mentioning it with a PR Welcome sign up: https://github.com/Microsoft/TypeScript/issues/27545
  45. …was slightly better, since a lot of people just immediately bring in Lodash to any JS project. [0] https://github.com/Microsoft/TypeScript/issues/5453
  46. ▲ 58
    TypeScript Roadmap 2019
    story by Vinnl · 2019-01-07 · 17 comments
  47. …to check the state of static type checking for Javascript should take some time and read through - https://github.com/Microsoft/TypeScript/issues - https://github.com/facebook/flow/issues I do that quite a lot myself and have also…
  48. …https://github.com/piotrwitek/react-redux-typescript-guide is my current favorite resource. [0]: https://github.com/Microsoft/TypeScript/issues/27484 [1]: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/28...
    comment by jasonkillian · 2018-10-23 · in TypeScript support added to Create React App
  49. They have been working on the error UX for the last 2 releases and still have some things planned https://github.com/Microsoft/TypeScript/issues/26077
  50. …described in https://www.typescriptlang.org/docs/handbook/type-compatibil... More examples are on https://github.com/Microsoft/TypeScript/wiki/FAQ
    comment by sephware · 2018-10-04 · in Deno – A secure TypeScript runtime on V8