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. …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
  2. …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…
  3. …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...
  4. …for typescript or also implementing a second protocol that is sort of but not quite LSP. See https://github.com/microsoft/TypeScript/issues/39459
  5. ▲ 49
    TypeScript's Type System Is Turing Complete (2017)
    story by rendall · 2021-07-14 · 43 comments
  6. …), 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
  7. …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
  8. …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…
  9. …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)
  10. Just adding a link for myself: https://github.com/Microsoft/TypeScript
  11. …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
  12. …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
  13. …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
  14. 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
  15. 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
  16. ▲ 6
    Add Oracle Types for TypeScript
    story by aleffert · 2021-04-01 · 0 comments
  17. ▲ 1
    I wish TypeScript did not treat JavaScript native classes as interfaces
    story by noseratio · 2021-03-16 · 0 comments
  18. > 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?
  19. …[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
  20. …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
  21. Not doing runtime checks is a deliberate decision: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... So Zod it is. I like it.
  22. …(I still think this is actually due to bug in TypeScript, see https://github.com/microsoft/TypeScript/issues/31990 .)
  23. …protect us from our own code, but not external definitions/libraries. Relevant GitHub issue here — https://github.com/microsoft/TypeScript/issues/26188
  24. 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
  25. This is being looked at https://github.com/microsoft/TypeScript/issues/31658
  26. …"pedantic" option for index access [1]) option that would check against that potential errors. [1] https://github.com/microsoft/TypeScript/pull/39560
  27. 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
  28. 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
  29. …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
  30. …type A ≠ string-equivalent type B), though there's ongoing discussion around adding it ( https://github.com/Microsoft/TypeScript/issues/202 ).
    comment by crooked-v · 2021-01-05 · in GUIDs Are Not the Only Answer
  31. In poking around, I found this: https://github.com/microsoft/TypeScript/issues/14833 Where someone actually implements a compile-time check for prime numbers. I guess saying that it _can't_ be done is inaccurate. It's just absolutely…
    comment by amw-zero · 2021-01-05 · in Verified Programming in F*: A Tutorial
  32. …programming in TypeScript. I haven't given a close look yet, but here are some relevant links: - https://github.com/microsoft/TypeScript/issues/31364 - https://johtela.github.io/litscript/ - https://mistlog.github.io/ray-tracing/index.html
  33. …the system extensible so that external tools can use the compiler for more complex build workflows. https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
  34. …In fact, the skipLibCheck flag was originally developed to improve NativeScript compile time: https://github.com/microsoft/TypeScript/issues/8521 Unfortunately, editing still feels slow to me when including NativeScript’s iOS/Android types…
    comment by LinguaBrowse · 2020-11-25 · in Tips for Performant TypeScript
  35. …looked at the server logs (using the instructions on this page). That quickly led me to this bug: https://github.com/microsoft/TypeScript/issues/35036 . Even though it took a while to get fixed, I felt immensely better that the problem was…
    comment by danvk · 2020-11-24 · in Tips for Performant TypeScript
  36. …are more performant on newer versions. (Notion is stuck on 3.4 because of this issue: https://github.com/microsoft/TypeScript/issues/31445 )
    comment by jitl · 2020-11-24 · in Tips for Performant TypeScript
  37. …this. One of my colleagues wrote up on his work on TypeScript 4.1's `--generateTrace` flag: https://github.com/microsoft/TypeScript/wiki/Performance-Tra... That page can give some guidance on diagnosing what the compiler's time is going…
    comment by DanRosenwasser · 2020-11-24 · in Tips for Performant TypeScript
  38. …code. In my opinion, both of those are far more important than small changes in compile time. [0] https://github.com/microsoft/TypeScript/wiki/Performance#usi...
    comment by Etheryte · 2020-11-24 · in Tips for Performant TypeScript
  39. ▲ 281
    Tips for Performant TypeScript
    story by nkjoep · 2020-11-24 · 113 comments
  40. …for JSON.parse() isn't inferred/deduced, it's explicit in lib.es5.d.ts (imported from lib.d.ts): https://github.com/microsoft/TypeScript/blob/master/lib/lib.... You could provide your own lib.d.ts with `unknown` type returned for…
    comment by WorldMaker · 2020-11-20 · in TypeScript 4.1
  41. ▲ 2
    TypeScript – don't require to implement optional abstract properties
    story by valera_rozuvan · 2020-10-26 · 0 comments
  42. …[1] https://github.com/yarnpkg/berry/blob/f384f0f40e87d636e4021b... [2] https://github.com/microsoft/TypeScript/pull/35206
    comment by acemarke · 2020-10-24 · in Node.js 15.0
  43. …TypeScript team will show interest eventually and we'll be able to streamline the development. [1] https://github.com/microsoft/TypeScript/pull/35206
    comment by arcatek · 2020-10-23 · in Node.js 15.0
  44. Apparently for markting reasons. https://github.com/Microsoft/TypeScript/issues/14116#issueco...
    comment by jp3141 · 2020-10-12 · in Sentimental Versioning
  45. …(the behavior is different) [3]. edit 6: Typescript is an opinionated-yet-spineless Javascript! [0] https://github.com/microsoft/TypeScript/issues/38546 [1] https://en.wikipedia.org/wiki/TypeScript [2] https://stackoverflow.com/a/53698835…
    comment by fizixer · 2020-10-10 · in MathJax
  46. ▲ 1
    Pull Request for Higher-Kinded Types in TypeScript
    story by prmph · 2020-09-30 · 0 comments
  47. …JS cruft. Apart from the i32, i64 stuff I guess. [1] https://github.com/tc39/proposal-temporal [2] https://github.com/Microsoft/TypeScript/pull/12253#issuecomm... [3] https://github.com/microsoft/TypeScript/issues/12936 [4]…
  48. …it's basically the same :/ They're definition avoiding anything different now: see goal 6: https://github.com/microsoft/TypeScript/wiki/TypeScript-Desi...
  49. …at some point. (see other commends under my original). Your reasoning is unsound. I'm sorry. https://github.com/microsoft/TypeScript/wiki/TypeScript-Desi... Please see goal number 6. Typescript is an opensource language (probably in mostly…
  50. …years ago, and hilariously, someone linked that issue to the new types mentioned in this post :) https://github.com/microsoft/TypeScript/issues/14833 I've been using Typescript for years, and I still like it. But I'm starting to get…