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. …mainstream adoption potential. https://twitter.com/MichaelArnaldi/status/178506160889445172... https://github.com/microsoft/TypeScript/pull/58337
  2. …you soon reach a point where you're just lulling yourself into a false sense of security. [1]: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
    comment by fallingsquirrel · 2024-10-07 · in Rust needs a web framework
  3. …the browser's `crypto.randomUUID` function actually already use this technique to a lesser extent: https://github.com/microsoft/TypeScript/blob/121c5dd36bd87e4...
    comment by throwitaway1123 · 2024-09-20 · in Microsoft TypeSpec
  4. …against that interface. Look at the early versions of the TypeScript compiler. Here's 1.8: < https://github.com/microsoft/TypeScript/blob/release-1.8/src... > tsc doesn't care whether it's running on Node or in the browser or somewhere…
    comment by cxr · 2024-09-08 · in Going Buildless
  5. Issue #14833 - TypeScripts Type System is Turing Complete https://github.com/microsoft/TypeScript/issues/14833
  6. …be achievable by native. [1]: https://github.com/kaleidawave/ezno/actions/runs/10299707325 [2]: https://github.com/microsoft/TypeScript/pull/58928
  7. One example: https://github.com/microsoft/TypeScript/issues/30551 Which goes to https://github.com/microsoft/TypeScript/issues/9998 which captures a lot of such scenarios And just a few releases ago there were some big problems with…
  8. What they probably meant was writing 'import "file.ts"' and have tsc emit 'import "file.js"'. https://github.com/microsoft/TypeScript/issues/49083
  9. …I'm not entirely convinced myself of that proposal, but maybe someone finds this interesting: https://github.com/microsoft/TypeScript/issues/43505
  10. …to TypeScript, they might not have the incentive in investing in the TypeScript ecosystem. [1]: https://github.com/microsoft/TypeScript/issues/8#issuecommen... [2]: https://github.com/microsoft/TypeScript/issues/661#issuecomm... [3]:…
    comment by rixtox · 2024-05-15 · in React Compiler is now open source
  11. …types too clever. I would prefer a dedicated syntax for nominal types. I made my own proposal: https://github.com/microsoft/TypeScript/issues/202#issuecomm...
    comment by conaclos · 2024-05-15 · in Branded types for TypeScript
  12. …eventually be able to solve the problem the GP highlighted on top of those foundations. [1]: https://github.com/microsoft/TypeScript/pull/55600
    comment by swift · 2024-04-25 · in JSR Is Not Another Package Manager
  13. And has some really odd behaviors like https://github.com/microsoft/TypeScript/issues/17053
    comment by postepowanieadm · 2024-04-25 · in JSR Is Not Another Package Manager
  14. …all. It's refinement types, [4] or newtypes[5] depending on the details and how you shape it. [1] https://github.com/microsoft/TypeScript/blob/main/src/compil... [2] https://github.com/microsoft/TypeScript/issues/4895 [3]…
    comment by wwwigham · 2024-04-25 · in TypeScript: Branded Types
  15. …[0] vs typescript contributions [1] [0] https://github.com/facebook/flow/graphs/contributors [1] https://github.com/microsoft/TypeScript/graphs/contributors
    comment by mirekrusin · 2024-04-24 · in TypeScript: Branded Types
  16. …[1] contributions if you want. [0] https://github.com/facebook/flow/graphs/contributors [1] https://github.com/microsoft/TypeScript/graphs/contributors
    comment by mirekrusin · 2024-03-07 · in Eloquent JavaScript 4th edition (2024)
  17. …away if functions are allowed to have union types, which is complicated but not impossible. See: https://github.com/microsoft/TypeScript/issues/15114
  18. …as issues where the TS team has discussed what they can and can't do in control flow analysis. [1] https://github.com/microsoft/TypeScript/issues/40844
  19. …startsWith doesn't narrow the type, making this pattern slightly less convenient. The GH issue: https://github.com/microsoft/TypeScript/issues/46958
  20. …Isolated Declarations [0]. If this is too much of work, then we will review our options. [0] https://github.com/microsoft/TypeScript/issues/47947
    comment by conaclos · 2024-01-22 · in BiomeJS 2024 Roadmap
  21. …https://dprint.dev/plugins/typescript/config/ [2] https://github.com/denoland/deno/issues/3818 [3] https://github.com/microsoft/TypeScript/pull/54820
  22. …scenario in case something is missing). For example, the TypeScript team uses a line limit of 1000: https://github.com/microsoft/TypeScript/blob/1797837351782e7...
    comment by dsherret · 2023-11-27 · in $20k bounty was claimed
  23. …prefer interface inheritance over type merging, for both performance and correctness reasons: https://github.com/microsoft/TypeScript/wiki/Performance#pre...
    comment by chatmasta · 2023-11-26 · in Favour TypeScript Types over Interfaces
  24. …to be modified accordingly; this often takes significant time. Here's the long-lived Github issue: https://github.com/microsoft/TypeScript/issues/14419 And here's the newest proposal to add official support:…
  25. …code, and the language itself does not affect runtime behavior (with the exception of enums). [0]: https://github.com/microsoft/TypeScript/issues/14833
  26. …It's a bit easier to find compiler bugs when new features are getting added pretty frequently. [1] https://github.com/microsoft/TypeScript/issues/35970
    comment by DylanSp · 2023-11-04 · in Sometimes, it is a compiler bug (2022)
  27. https://github.com/microsoft/TypeScript/issues/13219
  28. …narrowing on untrusted data typecast to unknown I ran into a handful of problems documented here: https://github.com/microsoft/TypeScript/issues/25720 Working with untrusted types in a GraphQL project lead me to creating that JsonObject…
  29. …to this bug [1], even the typescript compiler’s npm doesn’t include source or sourcemaps. [1] https://github.com/microsoft/TypeScript/issues/32207
  30. …tested currently. This would make recursion impossible. That sounds like a reasonable resolution. https://github.com/microsoft/TypeScript/issues/14833
  31. …completeness is accidental, and in the case of CSS a security concern. (In the case of TS, see https://github.com/microsoft/TypeScript/issues/14833 ) If anyone has more historical evidence that this is so for CSS, reactions from original…
  32. …that this is just standard fare for mature typing systems. TypeScript's types are Turing complete: https://github.com/microsoft/TypeScript/issues/14833 Python's type hints are Turing complete: https://arxiv.org/abs/2208.14755 Java generics…
    comment by bhouston · 2023-09-18 · in Memory-efficient enum arrays in Zig
  33. …itself will never integrate something like this as it goes against their design goals[1]. [1] https://github.com/microsoft/TypeScript/wiki/TypeScript-Desi...
  34. TypeScripts Type System is Turing Complete #14833 https://github.com/microsoft/TypeScript/issues/14833
  35. …to hear about them if you don't mind. I personally only had one bug that was caused by TS itself ( https://github.com/microsoft/TypeScript/issues/40726 ) so I'm curious to hear about the issues you encountered.
    comment by dezsiszabi · 2023-09-06 · in Remove TypeScript
  36. What do you use for type checking in dev - tsserver? https://github.com/microsoft/TypeScript/wiki/Standalone-Serv... Regarding this, it's a pity there's no officially maintained support for the language server protocol in TypeScript, and…
    comment by tuukkah · 2023-09-06 · in Remove TypeScript
  37. The direct link to the reason is here: https://github.com/microsoft/TypeScript/issues/13219#issueco... All in all, a well-reasoned decision. And I say that as someone who actually likes typed and checked exceptions.
  38. …declaration mode promises great improvements: until 75% of reduction in compilation time! [0] [0] https://github.com/microsoft/TypeScript/pull/53463#issuecomm...
  39. You can probably do this with the typescript compiler API https://github.com/microsoft/TypeScript/wiki/Using-the-Compi...
    comment by gsuuon · 2023-08-11 · in TypeScript Without Transpilation (2021)
  40. Programmatically yes: https://github.com/microsoft/TypeScript/blob/28cd1fbd13b8d09... You just need to call this from somewhere like ts-morph.
    comment by alexlur · 2023-08-11 · in TypeScript Without Transpilation (2021)
  41. …promotions but apparently it was a thing for the TypeScript project to get funding at Microsoft: https://github.com/microsoft/TypeScript/issues/14116#issueco...
    comment by azemetre · 2023-08-08 · in Svelte 5 is going to be radical
  42. …* Interface supports declaration merging, Alias does not. While not an RFP, this may be helpful: https://github.com/microsoft/TypeScript/wiki/Performance#pre...
  43. https://github.com/microsoft/TypeScript/issues/54163#issueco... >Hundreds of Github comments have been rehashed on this issue over and over again. Import paths are not modified during compilation, and we're not going to modify them during…
    comment by tinideiznaimnou · 2023-07-08 · in TypeScript please give us reflection/runtime types
  44. …they don't support, for example, plain regexes - there is a HUGE discussion on this topic here, https://github.com/microsoft/TypeScript/issues/6579 .
    comment by hn_throwaway_99 · 2023-07-07 · in TypeScript please give us reflection/runtime types
  45. …a bit hairy though, which is why the unofficial typescript-language-server npm package wraps it. https://github.com/microsoft/TypeScript/wiki/Standalone-Serv...
  46. …link to "The 7 year old Github issue" which describes the problem in they way you're asking for. https://github.com/microsoft/TypeScript/issues/3628
    comment by spatialaustin · 2023-07-07 · in TypeScript please give us reflection/runtime types
  47. …runtime functionality or libraries. Instead, use TypeScript to describe existing libraries. [0] https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
  48. …behavior of all JavaScript code. > 8. Use a consistent, fully erasable, structural type system. https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
  49. …as `Object.keys`. And that seems unlikely to change[1]. [0]: https://tsplay.dev/N7zKRw [1]: https://github.com/microsoft/TypeScript/issues/38520
  50. There's an old issue open in TypeScript for _exact_ types, which might help in some cases here: https://github.com/microsoft/TypeScript/issues/12936 But there are some problems with that approach, mainly that exact types would be somewhat…