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. …= { A: 0, A: 1, } as enum; [0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... [1] https://github.com/microsoft/TypeScript/issues/59658
  2. ▲ 3
    TypeScript doesn't follow semver due to marketing reasons
    story by chrcit · 2024-11-19 · 2 comments
  3. …the effort for adding these isn't worth it. But maybe someone likes it or takes it further. [1]: https://github.com/microsoft/TypeScript/issues/43505
    comment by nikeee · 2024-11-01 · in Sets, types and type checking
  4. …// Why var? It avoids TDZ checks in the runtime which can be costly. // See: https://github.com/microsoft/TypeScript/issues/52924 /* eslint-disable no-var */ var deferredDiagnosticsCallbacks: (() => void)[] = [];
    comment by dunham · 2024-10-10 · in Proposal: JavaScript Structs
  5. Not really - https://github.com/Microsoft/TypeScript/issues/16607 . ts-morph provides an easy way to use the TypeScript Compiler API to view and edit the AST before compile. Once you get your head around the API, which has good examples…
  6. …mainstream adoption potential. https://twitter.com/MichaelArnaldi/status/178506160889445172... https://github.com/microsoft/TypeScript/pull/58337
  7. …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
  8. …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
  9. …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
  10. Issue #14833 - TypeScripts Type System is Turing Complete https://github.com/microsoft/TypeScript/issues/14833
  11. ▲ 1
    Allow type annotations in .js files in preparation for Type Annotations proposal
    story by novocantico · 2024-08-15 · 1 comment
  12. …be achievable by native. [1]: https://github.com/kaleidawave/ezno/actions/runs/10299707325 [2]: https://github.com/microsoft/TypeScript/pull/58928
  13. 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…
  14. What they probably meant was writing 'import "file.ts"' and have tsc emit 'import "file.js"'. https://github.com/microsoft/TypeScript/issues/49083
  15. ▲ 13
    Alternative File-Type extension for TypeScript files (.ts = MPEG-2 video)
    story by popcalc · 2024-07-12 · 1 comment
  16. …I'm not entirely convinced myself of that proposal, but maybe someone finds this interesting: https://github.com/microsoft/TypeScript/issues/43505
  17. …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
  18. …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
  19. …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
  20. 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
  21. …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
  22. …[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
  23. ▲ 2
    Proposal: Types as Configuration
    story by wwwigham · 2024-04-01 · 0 comments
  24. …[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)
  25. …away if functions are allowed to have union types, which is complicated but not impossible. See: https://github.com/microsoft/TypeScript/issues/15114
  26. …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
  27. …startsWith doesn't narrow the type, making this pattern slightly less convenient. The GH issue: https://github.com/microsoft/TypeScript/issues/46958
  28. …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
  29. ▲ 1
    TypeScript: Preserve type refinements in closures created past last assignment
    story by goranmoomin · 2024-01-06 · 0 comments
  30. …https://dprint.dev/plugins/typescript/config/ [2] https://github.com/denoland/deno/issues/3818 [3] https://github.com/microsoft/TypeScript/pull/54820
  31. ▲ 5
    Call it "sloppy mode" – Microsoft/TypeScript (2019)
    story by kripy · 2023-12-20 · 0 comments
  32. …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
  33. …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
  34. …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:…
  35. …code, and the language itself does not affect runtime behavior (with the exception of enums). [0]: https://github.com/microsoft/TypeScript/issues/14833
  36. …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)
  37. https://github.com/microsoft/TypeScript/issues/13219
  38. …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…
  39. …to this bug [1], even the typescript compiler’s npm doesn’t include source or sourcemaps. [1] https://github.com/microsoft/TypeScript/issues/32207
  40. …tested currently. This would make recursion impossible. That sounds like a reasonable resolution. https://github.com/microsoft/TypeScript/issues/14833
  41. …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…
  42. …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
  43. …itself will never integrate something like this as it goes against their design goals[1]. [1] https://github.com/microsoft/TypeScript/wiki/TypeScript-Desi...
  44. TypeScripts Type System is Turing Complete #14833 https://github.com/microsoft/TypeScript/issues/14833
  45. …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
  46. 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
  47. ▲ 11
    TypeScript Meta Type System – A Proposal
    story by prmph · 2023-09-02 · 3 comments
  48. 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.
  49. ▲ 19
    TypeScript team's reasoning for rejecting typed/checked exceptions
    story by rane · 2023-08-25 · 1 comment
  50. …declaration mode promises great improvements: until 75% of reduction in compilation time! [0] [0] https://github.com/microsoft/TypeScript/pull/53463#issuecomm...