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. ▲ 31
    TypeScript: Template string types and mapped type 'as' clauses
    story by Kinrany · 2020-09-01 · 15 comments
  2. ▲ 13
    TypeScript adds support for Template String types
    story by phpnode · 2020-08-31 · 0 comments
  3. https://github.com/Microsoft/TypeScript/issues/467#issuecomm...
    comment by ht85 · 2020-08-21 · in PHP 8.0.0 beta 2
  4. …but is a major issue when you’re trying to prettify and overwrite the original source file. [1] https://github.com/Microsoft/TypeScript/wiki/Using-the-Compi... [2] https://github.com/microsoft/TypeScript/issues/39620
    comment by wolfgang42 · 2020-08-09 · in Rome: A Linter for JavaScript and TypeScript
  5. …It's a bit complicated, what I just wrote about is reflected in the chart in step 4-6 here https://github.com/microsoft/TypeScript/issues/18442#issueco...
  6. Not exactly sure what you mean but you can check this: https://github.com/microsoft/TypeScript/issues/2719
  7. fwiw, TypeScript and ES Modules are just not compatible and never will be: https://github.com/microsoft/TypeScript/issues/18442#issueco...
  8. ▲ 4
    Ask HN: TS separate from JS would be awesome; why's no one working on it?
    story by prmph · 2020-08-03 · 3 comments
  9. …can be done either via a library or by hand rolling it: - https://github.com/gcanti/newtype-ts - https://github.com/Microsoft/TypeScript/issues/4895#issuecom... but it isn't as nice as say Python's `typing.NewType` or Haskell's `newtype`
    comment by emptysea · 2020-07-25 · in Understanding null safety in Dart
  10. ▲ 2
    TypeScript – FAQ
    story by lindskogen · 2020-07-12 · 0 comments
  11. …or even incorrect values for declared types. I understand 'incorrect values' (this is true, see https://github.com/Microsoft/TypeScript/issues/15480 ) . But TypeScript definitely doesn't like adding additional fields. Right now I'm working…
  12. …tps://medium.com/better-programming/nominal-typescript-eee... for example) and there is an open issue https://github.com/Microsoft/Typescript/issues/202 but it’s still not being considered for implementation as far as I remember.
    comment by tigershark · 2020-07-09 · in Moving from TypeScript to Rust / WebAssembly
  13. …other long standing and heavily upvoded feature requests that maybe we'll get them one day :) [1] https://github.com/microsoft/TypeScript/issues/5453
    comment by mpawelski · 2020-06-26 · in TypeScript 4.0 Beta
  14. …of the release notes made it sound pretty innocuous: "Getters/Setters are No Longer Enumerable". https://github.com/microsoft/TypeScript/issues/38568 https://github.com/microsoft/TypeScript/pull/32264
    comment by nammi · 2020-06-26 · in TypeScript 4.0 Beta
  15. ▲ 2
    Variadic tuple types coming to TypeScript 4.0
    story by janpot · 2020-06-19 · 0 comments
  16. …I wouldn't disagree, but it'd be so useful! ¹ https://github.com/kentcdodds/babel-plugin-macros ² https://github.com/Microsoft/TypeScript/issues/16607
  17. Worst case (MS moves to bad-acting), re: Deno—TypeScript can at least be forked for now https://github.com/Microsoft/TypeScript I'd love to see Mozilla hop on board with it
    comment by 52-6F-62 · 2020-05-20 · in Embrace, Extend, and Extinguish
  18. ▲ 1
    TypeScript Bliss
    story by orange8 · 2020-05-19 · 1 comment
  19. …of answer my own question, there is one more "leak" I forgot about - array bounds are unchecked https://github.com/Microsoft/TypeScript/issues/11122 , which can give you `undefined` (though not `null`) without it being reflected in the…
    comment by realharo · 2020-05-13 · in React Native for Windows and Mac
  20. …[1] http://loredanacirstea.github.io/es6-design-patterns/ [2] https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... [3] http://learnyouahaskell.com/ (a bit dated though) [4] https://www.typescriptlang.org/docs/
    comment by aastronaut · 2020-04-27 · in Eloquent JavaScript 3rd Edition (2018)
  21. …code everyday and most of it is functional. Things like fp-ts[1] make it even more enjoyable. [0] https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... [1] https://github.com/gcanti/fp-ts
  22. > https://github.com/microsoft/TypeScript/issues > Please count the number of open bugs You do realise the large number of open issues almost certainly relates to Typescript's compiler and language implementation? When a project is written…
  23. > How does removing typescript help you? https://github.com/microsoft/TypeScript/issues Please count the number of open bugs JS tooling is already an enormous jenga tower as it is, with tooling breakages eating a double digit of developer…
  24. …This approach (build runtime behavior that produces static types) is the intended one. [1] https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
  25. …the type system. Instead, encourage programming patterns that do not require run-time metadata. [1] https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
  26. …[1] https://github.com/prestodb/presto/blob/master/presto-parser... [2] https://github.com/microsoft/TypeScript/blob/master/src/comp...
    comment by rajnathani · 2020-03-05 · in Why not to use (f)lex, yacc or bison
  27. ▲ 2
    TypeScript: Using the Compiler API
    story by mariuz · 2020-03-03 · 1 comment
  28. ▲ 2
    TypeScript Coding Guidelines
    story by skywalker212 · 2020-02-28 · 0 comments
  29. …I ever found useful about TypeScript, while remaining completely unobtrusive otherwise[4]. 1. https://github.com/microsoft/TypeScript/issues/20774 2. https://ternjs.net/ 3. https://medium.com/@trukrs/type-safe-javascript-with-jsdoc-7... 4.…
  30. …author could create suggestion on github to improve it and allow discriminator to be nested? [0] https://github.com/Microsoft/TypeScript/issues/12936#issueco... [1] https://github.com/Microsoft/TypeScript/issues/12936
  31. #private is coming soon, so that won't really be true any more. https://github.com/microsoft/TypeScript/pull/30829 You'll have class members with accessibility in their declaration, and real run-time encapsulation.
  32. …than type equivalence completeness If you would, please post it in issues, that'll be great https://github.com/microsoft/TypeScript/issues
  33. ▲ 1
    Private Named Instance Fields
    story by theBashShell · 2019-12-29 · 0 comments
  34. …3 } if (props.type === 'b') { return 4 } } This second case is a bug in TSC, and is tracked in https://github.com/microsoft/TypeScript/issues/18319 . [0] https://www.typescriptlang.org/play/#code/AQ4FwTwBwU2AFATgey... [1]…
  35. …of other globally acknowledged standards such as https://blog.golang.org/go-fmt-your-code , https://github.com/microsoft/TypeScript/wiki/Coding-guidelin... , https://twitter.com/dan_abramov , etc, or self-made standards. You go follow…
  36. …and library instances, can't say in what proportion), although it is still worth the expense. [0] https://github.com/microsoft/TypeScript/blob/master/scripts/...
    comment by mtone · 2019-11-16 · in AMD Ryzen 9 3950X Review
  37. …args[0]; } (not tested) You'd have to spread the arguments or use call/bind/apply, though. [1]: https://github.com/microsoft/TypeScript/pull/24897
    comment by nikeee · 2019-11-08 · in Parse, Don’t Validate
  38. …until JS has it or is close to having it. TypeScript is typed JavaScript, end of story. [1] https://github.com/Microsoft/TypeScript/issues/17718
    comment by paulddraper · 2019-11-06 · in TypeScript 3.7
  39. …(A | B) [] >. This issue is being tracked here and a fix seems to be already in the making: https://github.com/microsoft/TypeScript/issues/33752 https://github.com/microsoft/TypeScript/pull/33707
    comment by graup · 2019-11-06 · in TypeScript 3.7
  40. …Otherwise, you're left to creating a wrapper function and a custom ESlint rule. Edit: found it https://github.com/microsoft/TypeScript/issues/13778#issueco... The suggestion is to maintain your own copy of `index.d.ts` with the array…
    comment by emptysea · 2019-11-05 · in TypeScript 3.7
  41. Not really https://github.com/microsoft/TypeScript/issues/9235 Though with tuples, etc. being defined, maybe it's worth re-examining.
    comment by Eyas · 2019-11-05 · in TypeScript 3.7
  42. 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
  43. Yes, and that prevents duplication of work when it's time to upgrade: https://github.com/microsoft/TypeScript/issues/33272
  44. …(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
  45. …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
  46. …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
  47. 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
  48. ▲ 396
    Google Feedback on TypeScript 3.5
    story by dkns · 2019-09-09 · 145 comments
  49. ▲ 2
    Google Feedback on TypeScript 3.5
    story by Garbage · 2019-09-06 · 0 comments
  50. ▲ 12
    Google Feedback on TypeScript 3.5
    story by evmar · 2019-09-06 · 2 comments