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. now if they can just add a compiler flag for "immutable by default": https://github.com/microsoft/TypeScript/issues/32758
    comment by findjashua · 2019-11-05 · in TypeScript 3.7
  2. Yes, and that prevents duplication of work when it's time to upgrade: https://github.com/microsoft/TypeScript/issues/33272
  3. …(e.g. inside a `className` prop). However, TypeScript hasn't have good support for it yet ( https://github.com/microsoft/TypeScript/issues/4538 ) so we still need an explicit method to convert the instance to string.
    comment by dvkndn3 · 2019-10-11 · in Brings TypeScript to Tailwind CSS
  4. …system is turing-complete[0], and there's a playground demonstrating number base conversion[1]. 0: https://github.com/Microsoft/TypeScript/issues/14833 1: https://github.com/Microsoft/TypeScript/issues/14833#issueco...
    comment by thisBrian · 2019-10-02 · in TypeScript 3.7 Beta
  5. …that TS should be capable of understanding. I filed this as a bug to see if the developers agree: https://github.com/microsoft/TypeScript/issues/33743
    comment by anderskaseorg · 2019-10-02 · in TypeScript 3.7 Beta
  6. You can see a list of all changes in the "What's New in TypeScript" document on GitHub: https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T... And a list of breaking changes here: https://github.com/microsoft/TypeScript/wiki/Breaki…
    comment by jannes · 2019-09-09 · in Google Feedback on TypeScript 3.5
  7. …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
  8. 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
  9. https://github.com/microsoft/TypeScript/issues/16#issuecomme...
    comment by city41 · 2019-08-29 · in TypeScript 3.6
  10. …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
  11. …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
  12. …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
  13. …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)
  14. …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
  15. …ideas for improvements to TypeScript's documentation or website, we're currently asking for ideas: https://github.com/microsoft/TypeScript/issues/31983
  16. Nice overview! I plan on building a larger version of this into the docs eventually https://github.com/microsoft/TypeScript/issues/31983#issueco...
  17. …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
  18. > 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
  19. …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
  20. …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
  21. …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
  22. …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
  23. …a bit difficult to define a value as completely readonly in TypeScript. See this GitHub issue: https://github.com/Microsoft/TypeScript/issues/13923
  24. 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…
  25. …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…
  26. …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…
  27. …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...
  28. 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
  29. 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…
  30. …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?
  31. …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…
  32. …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
  33. …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
  34. …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
  35. 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
  36. 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
  37. …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
  38. https://github.com/Microsoft/TypeScript/wiki/Type-Checking-J...
    comment by _9vpl · 2019-01-18 · in Future of TypeScript on ESLint
  39. …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
  40. https://github.com/Microsoft/TypeScript/commit/d3b7058c2999f... over a year.
    comment by PudgePacket · 2019-01-16 · in Migrate Jest to TypeScript
  41. …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
  42. …leave this link here :-) [2] 1: https://www.typescriptlang.org/docs/handbook/release-notes/t... 2: https://github.com/Microsoft/TypeScript/issues/14833
  43. …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.
  44. Ah, and there is at least one PR specifically for it: https://github.com/Microsoft/TypeScript/pull/25716
  45. There's an issue mentioning it with a PR Welcome sign up: https://github.com/Microsoft/TypeScript/issues/27545
  46. …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
  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