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 a superset[1] of javascript, so typescript-only syntactic sugar is entirely to be expected. [1]: https://github.com/microsoft/TypeScript (repo description)
    comment by maronato · 2022-01-20 · in TypeScript Features to Avoid
  2. A discussion on checked exceptions in TypeScript: https://github.com/microsoft/TypeScript/issues/13219
  3. …is U): U[]; Additionally, getting TS better at inferring type guards is an open issue (literally): https://github.com/microsoft/TypeScript/issues/38390
  4. …but the ergonomics of `flatMap` type-wise are so much nicer! Just some interesting trivia. [0]: https://github.com/microsoft/TypeScript/issues/16069#issueco...
  5. https://github.com/microsoft/TypeScript/blob/main/src/compil...
    comment by ameliaquining · 2022-01-01 · in Do we need a link step?
  6. Unfortunately the typescript definitions for these two methods haven't been written yet [1]. [1] https://github.com/microsoft/TypeScript/issues/47171
  7. > but it's not true of generics in most languages not sure how true that is. * TypeScript: https://github.com/microsoft/TypeScript/issues/14833 * Rust: https://sdleffler.github.io/RustTypeSystemTuringComplete/ * Haskell (GHC):…
  8. …holder on this fork, but left the MIT license in place. How does this harm anyone? Here you go: https://github.com/microsoft/TypeScript Just fork TypeScript, change the copyright holder to yourself, and do what you want with it. I sure…
  9. …JS++ cannot read TypeScript, it's a completely new/different language. [0] https://github.com/microsoft/TypeScript/issues/29651
  10. …and then you get both a TS type AND a JS parser/validator (which works as a TS typeguard). [1] https://github.com/microsoft/TypeScript/wiki/TypeScript-Desi... [2] https://github.com/colinhacks/zod
    comment by kipple · 2021-12-13 · in Deno Joins TC39
  11. …sure there's room to complain, unless you disagree with the direction they're taking the project: https://github.com/microsoft/TypeScript/blob/main/LICENSE.tx...
    comment by TimTheTinker · 2021-12-13 · in Deno Joins TC39
  12. …fan of TS, however, it's not likely ever going to be the thing that it's really close to being. [1] https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
    comment by jollybean · 2021-12-13 · in Deno Joins TC39
  13. …about it!). Looks like it's on the community's radar at least, so hopefully they fix it some day: https://github.com/Microsoft/TypeScript/issues/13347 Arrays are treated correctly though, at least: https://www.typescriptlang.org/play?#code/…
  14. …if my code is ANY more robust than if I had written it in JavaScript. Record<> is broken/unsound: https://github.com/microsoft/TypeScript/issues/45335 Generics are wonky and sometimes wrong: https://github.com/microsoft/TypeScript/issues/31…
  15. …structure with all the corresponding drawbacks. [0] https://stackoverflow.com/q/56034226/247441 [1] https://github.com/microsoft/TypeScript/issues/26223
  16. Yep, that is exactly what it is, just a simple GH webhook to azure develops / GitHub Actions trigger. https://github.com/microsoft/TypeScript/issues/46177#issueco...
  17. The PR is the article submitted in this thread, https://github.com/microsoft/TypeScript/pull/46266
  18. …2, // typo } x(y) The above is caught in Flow when exact types are enabled but not in TS. TS issue https://github.com/microsoft/TypeScript/issues/12936 TS has a concept of "freshness" which catches some of these mistakes when you construct…
  19. Also: https://github.com/microsoft/TypeScript/pull/46429 . Anders is on a roll!
  20. …this pull request, you can do the above. This can be convenient with patterns like reducers (see https://github.com/microsoft/TypeScript/issues/46143 for an example).
  21. …in Minor updates [1]) [0]: https://devblogs.microsoft.com/typescript/announcing-typescr... [1]: https://github.com/microsoft/TypeScript/issues/14116#issueco...
  22. …its history in [2]. [0] https://github.com/arcanis/typanion [1] https://github.com/jquense/yup [2] https://github.com/microsoft/TypeScript/issues/3628
  23. …, and ponder applications to just-slightly-too-powerful type theories. Or https://github.com/Microsoft/TypeScript/issues/14833 .
  24. …because it splits the TS community to those who write Deno and those who write regular TS. [1]: https://github.com/microsoft/TypeScript/issues/27481
    comment by Ciantic · 2021-09-01 · in Deno Deploy Beta 2
  25. …so it's consistent with not affecting code generation. (More Turing completeness discussion at https://github.com/Microsoft/TypeScript/issues/14833 ) Then there are other features that have no equivalent in JS. For example enums. And the…
    comment by fulafel · 2021-08-24 · in Deno on MDN
  26. …but currently only via the tooling. It integrates with TS as a language service plugin ( https://github.com/Microsoft/TypeScript/wiki/Writing-a-Langu... ) so you get great warnings/errors, type inference and much more. To define standalone…
  27. …etc. can. They are upfront about this though and it's stated here in the design goals as a non-goal https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
  28. …for typescript or also implementing a second protocol that is sort of but not quite LSP. See https://github.com/microsoft/TypeScript/issues/39459
  29. …), Haskell, Rust ( https://sdleffler.github.io/RustTypeSystemTuringComplete/ ), Typescript ( https://github.com/Microsoft/TypeScript/issues/14833 ) ... Having a type system with generics and not being turing-complete as a result is the…
    comment by jcelerier · 2021-07-08 · in Compiling Rust is NP-hard
  30. …wraps tsserver, but there is hope that microsoft could implement lsp protocol directly for tsserver https://github.com/microsoft/TypeScript/issues/39459#issueco... at which point the experience should be more comparable to coc.nvim. On a…
    comment by mjlbach · 2021-07-03 · in Neovim v0.5
  31. …of resolution, because the proposed fix (from a member of the TS team) has terrible performance: https://github.com/microsoft/TypeScript/issues/21699 But since React is a such a minor part of the JS/TS landscape, who can really blame the…
  32. …no more, and "inexact" types where such subtyping is allowed. TypeScript doesn't have this check ( https://github.com/Microsoft/TypeScript/issues/12936 ) and I've found it can be really error prone when you're wanting to return a copy of…
    comment by seanwilson · 2021-06-26 · in Parse, Don't Validate (2019)
  33. Just adding a link for myself: https://github.com/Microsoft/TypeScript
  34. …This might be working well for M1, which has 4 high performance cores and 4 efficiency cores. [1]: https://github.com/microsoft/TypeScript/issues/30235
  35. …that requires your input be below some threshold eg: `type Limit = 0..100;` See discussion here: https://github.com/Microsoft/TypeScript/issues/15480
    comment by mbildner · 2021-05-15 · in Parsix: Parse Don't Validate
  36. …experiments started popping up last year. This issue thread on the TS repo may be of interest: https://github.com/microsoft/TypeScript/issues/33014
    comment by RobertKerans · 2021-05-14 · in Scala 3.0
  37. This was kinda explored at the start of April this year: https://github.com/microsoft/TypeScript/pull/43480
    comment by orta · 2021-05-07 · in JavaScript for Shell Scripting
  38. Do you know if that somehow fixes https://github.com/microsoft/TypeScript/issues/8677 ? That's still the most annoying thing about typescript for me.
    comment by razze · 2021-04-20 · in Why we chose Elm for Humio’s web UI
  39. > Valid JavaScript is also valid Typescript. Unfortunately, no: https://github.com/microsoft/TypeScript/issues/1863
    comment by Tade0 · 2021-03-10 · in Why Become a TypeScript Fan?
  40. …[1] https://v8.dev/blog [2] https://benchmarksgame-team.pages.debian.net/benchmarksgame/... [3] https://github.com/microsoft/TypeScript/pull/43035#issuecomm...
    comment by Chyzwar · 2021-03-05 · in It Can Happen to You
  41. …and then it wouldn't lie to you, but that would probably break a lot of people's code. EDIT: https://github.com/microsoft/TypeScript/issues/26188
  42. Not doing runtime checks is a deliberate decision: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... So Zod it is. I like it.
  43. …(I still think this is actually due to bug in TypeScript, see https://github.com/microsoft/TypeScript/issues/31990 .)
  44. …protect us from our own code, but not external definitions/libraries. Relevant GitHub issue here — https://github.com/microsoft/TypeScript/issues/26188
  45. Nominal types are on Typescript's roadmap: https://github.com/Microsoft/TypeScript/wiki/Roadmap Side note: An Introduction to Nominal TypeScript: What are nominal types and why should I use them? : https://medium.com/better-programming/nomi…
    comment by eevilspock · 2021-02-17 · in Typing Is Hard
  46. This is being looked at https://github.com/microsoft/TypeScript/issues/31658
  47. …"pedantic" option for index access [1]) option that would check against that potential errors. [1] https://github.com/microsoft/TypeScript/pull/39560
  48. According to https://github.com/microsoft/TypeScript/wiki/Performance#pre... using union types in your example vs interfaces like #6 is bad for compilation performance.
    comment by bengalister · 2021-02-02 · in Bad TypeScript Habits
  49. I hope Typescript will support Export Maps soon: https://github.com/microsoft/TypeScript/issues/33079
    comment by wildpeaks · 2021-01-13 · in Get Ready for ESM
  50. …it is open-source.[0] It's sort of funny this pylance thing seems to suffer the same problem. [0]: https://github.com/microsoft/TypeScript/issues/39459