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. ▲ 9
    Ask HN: TypeScript config confusion
    story by w3456yhbvr5yh · 2022-05-13 · 2 comments
  2. …loper.mozilla.org/en-US/docs/Web/JavaScript/Refe... 1 - https://exploringjs.com/es6/ch_async.html 2 - https://github.com/microsoft/TypeScript/issues/6283#issuecom...
  3. …it in case anyone is looking to use this feature and might hit the same issues. The TS issue is https://github.com/microsoft/TypeScript/issues/47945 if you'd like to see more details.
  4. …by MS) is not an LSP server. There is an open issue [1] that has been open since 2020. [1] https://github.com/microsoft/TypeScript/issues/39459
    comment by lf-non · 2022-04-25 · in Why LSP?
  5. …types (which is why one could argue to not implement them), but it's interesting nonetheless. [1]: https://github.com/microsoft/TypeScript/issues/43505
    comment by nikeee · 2022-04-22 · in TypeScript and Set Theory
  6. ▲ 3
    TypeScript Instantiation Expressions
    story by soheilpro · 2022-04-11 · 1 comment
  7. …packages as dependended on by public repos. For instance, the repos that depend on Typescript: https://github.com/microsoft/TypeScript/network/dependents?p... There's often less tooling available for private repository hosts and private…
    comment by WorldMaker · 2022-04-07 · in Advantages of Monorepos (2015)
  8. TypeScript's checker.ts is a 2.65 MB file containing 44,932 lines at the moment. https://github.com/microsoft/TypeScript/blob/main/src/compil... Does anyone know why and how they maintain it?
    comment by scoresmoke · 2022-04-03 · in A project with a single 11,000-line code file
  9. …types. Will the standardisation of type annotations impose further constraints on typescript? [0] - https://github.com/microsoft/TypeScript/wiki/Roadmap#future
  10. …TypeScript and now I don't want to touch the stuff. TS is much more ergonomic and expressive. [1]: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
    comment by neurotrace · 2022-03-09 · in A Proposal for Type Syntax in JavaScript
  11. …(and the compiler) way more complex and difficult. GitHub issue about the Turing completeness: https://github.com/microsoft/TypeScript/issues/14833 Proof of Turing completeness: https://gist.github.com/hediet/63f4844acf5ac330804801084f87a..…
    comment by ReleaseCandidat · 2022-02-02 · in An introduction to type programming in TypeScript
  12. ▲ 2
    TypeScript Bytecode Interpreter / Runtime Types
    story by marcjschmidt · 2022-01-30 · 0 comments
  13. …[0] as a NPM build with: "typescript": "npm:@typescript-deploys/pr-build@4.6.0-pr-43617-23" [0] https://github.com/microsoft/TypeScript/pull/43617
  14. …The Typescript compiler performance wiki might also be of interest: https://github.com/microsoft/TypeScript/wiki/Performance
  15. …hints that they might move towards more parallel processing but it requires a lot of major changes https://github.com/microsoft/TypeScript/issues/30235
  16. …the same ~38,000 files in this directory from the test cases, you're pretty much on par with tsc: https://github.com/microsoft/TypeScript/tree/main/tests/base...
  17. Related: https://github.com/microsoft/TypeScript/issues/42813
    comment by AbuAssar · 2022-01-25 · in Deno in 2021
  18. …gist.github.com/sindresorhus/a39789f98801d908bbc7ff3... And for the problems with esm and TypeScript: https://github.com/microsoft/TypeScript/issues/46452
  19. …really ugly. I hope somebody will make at least a babel plugin or something to allow that. [1]: https://github.com/microsoft/TypeScript/issues/6936
    comment by captainmuon · 2022-01-21 · in TypeScript Features to Avoid
  20. …as your example. From the language goals > 4. Emit clean, idiomatic, recognizable JavaScript code. https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
    comment by donatj · 2022-01-20 · in TypeScript Features to Avoid
  21. …with TypeScript's design goals. Specifically, the one to: > Avoid adding expression-level syntax. https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... And that makes sense to me. IMHO it's best to consider TypeScript as a tool…
    comment by Vinnl · 2022-01-20 · in TypeScript Features to Avoid
  22. …going for. It's pretty what TypeScript's going for though: > Avoid adding expression-level syntax. https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
    comment by Vinnl · 2022-01-20 · in TypeScript Features to Avoid
  23. I really don’t remember, sorry. I just scanned through https://github.com/Microsoft/TypeScript/wiki/Breaking-Change... and nothing jogged my memory; I’m wondering if it actually was something to do with decorators, though I still think…
    comment by chrismorgan · 2022-01-20 · in TypeScript Features to Avoid
  24. …types in languages like Rust: - https://stackoverflow.com/questions/40275832/typescript-has-... - https://github.com/microsoft/TypeScript/issues/32690 In a TS codebase I'm currently working on, we have the policy of never using "plain" TS…
    comment by dbrgn · 2022-01-20 · in TypeScript Features to Avoid
  25. …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
  26. A discussion on checked exceptions in TypeScript: https://github.com/microsoft/TypeScript/issues/13219
  27. …is U): U[]; Additionally, getting TS better at inferring type guards is an open issue (literally): https://github.com/microsoft/TypeScript/issues/38390
  28. …but the ergonomics of `flatMap` type-wise are so much nicer! Just some interesting trivia. [0]: https://github.com/microsoft/TypeScript/issues/16069#issueco...
  29. https://github.com/microsoft/TypeScript/blob/main/src/compil...
    comment by ameliaquining · 2022-01-01 · in Do we need a link step?
  30. Unfortunately the typescript definitions for these two methods haven't been written yet [1]. [1] https://github.com/microsoft/TypeScript/issues/47171
  31. > 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):…
  32. …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…
  33. …JS++ cannot read TypeScript, it's a completely new/different language. [0] https://github.com/microsoft/TypeScript/issues/29651
  34. …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
  35. …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
  36. …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
  37. …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/…
  38. …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…
  39. …structure with all the corresponding drawbacks. [0] https://stackoverflow.com/q/56034226/247441 [1] https://github.com/microsoft/TypeScript/issues/26223
  40. 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...
  41. The PR is the article submitted in this thread, https://github.com/microsoft/TypeScript/pull/46266
  42. …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…
  43. ▲ 3
    TypeScript: Simplify relationship check for conditional type on target side
    story by tosh · 2021-11-03 · 0 comments
  44. Also: https://github.com/microsoft/TypeScript/pull/46429 . Anders is on a roll!
  45. …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).
  46. ▲ 299
    TypeScript: Control flow analysis for destructured discriminated unions
    story by tosh · 2021-11-03 · 107 comments
  47. …in Minor updates [1]) [0]: https://devblogs.microsoft.com/typescript/announcing-typescr... [1]: https://github.com/microsoft/TypeScript/issues/14116#issueco...
  48. …its history in [2]. [0] https://github.com/arcanis/typanion [1] https://github.com/jquense/yup [2] https://github.com/microsoft/TypeScript/issues/3628
  49. …, and ponder applications to just-slightly-too-powerful type theories. Or https://github.com/Microsoft/TypeScript/issues/14833 .
  50. …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