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. 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)
  2. 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)
  3. ▲ 2
    Why TypeScript Doesnt Have Typed nor Checked Exceptions
    story by nonethewiser · 2023-08-09 · 1 comment
  4. …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
  5. …* Interface supports declaration merging, Alias does not. While not an RFP, this may be helpful: https://github.com/microsoft/TypeScript/wiki/Performance#pre...
  6. ▲ 1
    Throws keyword basically never coming to TypeScript (
    story by _samjarman · 2023-07-09 · 1 comment
  7. 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
  8. …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
  9. …a bit hairy though, which is why the unofficial typescript-language-server npm package wraps it. https://github.com/microsoft/TypeScript/wiki/Standalone-Serv...
  10. …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
  11. …runtime functionality or libraries. Instead, use TypeScript to describe existing libraries. [0] https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
  12. …behavior of all JavaScript code. > 8. Use a consistent, fully erasable, structural type system. https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
  13. ▲ 3
    TypeScripts Type System Is Turing Complete
    story by behnamoh · 2023-07-03 · 0 comments
  14. ▲ 1
    Rename TypeScript to LintScript
    story by love2read · 2023-06-30 · 0 comments
  15. …as `Object.keys`. And that seems unlikely to change[1]. [0]: https://tsplay.dev/N7zKRw [1]: https://github.com/microsoft/TypeScript/issues/38520
  16. 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…
  17. There's a big discussion about this: https://github.com/microsoft/TypeScript/issues/1897 . The benefit seems extremely limited to me. Valid JSON is obviously a subset of `any`, but I can't think of a situation where that particular…
    comment by kristiandupont · 2023-06-24 · in Why doesn't TypeScript properly type Object.keys?
  18. Runtime type information is against the goals of TypeScript. https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... Edit: Non-goals: … 5. Add or rely on run-time type information in programs, or emit different code based on the…
  19. I agree that it would be nice if it flagged this kind of thing. But TypeScript disagrees. https://github.com/microsoft/TypeScript/wiki/FAQ#why-are-fun...
  20. …output. .js file extensions have always worked in Typescript (going back to 0.x days). It was not. https://github.com/microsoft/TypeScript/issues/16577 There was proposal and PR, but It was rejected. When writing ESM in typescript, you…
    comment by Chyzwar · 2023-06-20 · in ES Modules Are Terrible
  21. Unless you were using the (yet unimplemented) exact types in TS. https://github.com/Microsoft/TypeScript/issues/12936
    comment by littlecranky67 · 2023-06-19 · in TypeScript 5.2's new keyword: 'Using'
  22. …about that type checker. The Typescript type checker is (or at least was) already Turing-complete ( https://github.com/microsoft/TypeScript/issues/14833 ) without fully supporting dependent types.
  23. …https://blog.reverberate.org/2013/08/parsing-c-is-literally-... ), as is TypeScript's type system ( https://github.com/microsoft/TypeScript/issues/14833 ).
    comment by armchairhacker · 2023-06-05 · in DreamBerd is a perfect programming language
  24. …[jest ESM support] https://github.com/jestjs/jest/issues/9430 [typescript extensions] https://github.com/microsoft/TypeScript/issues/16577 [typescript exports] https://github.com/microsoft/TypeScript/issues/33079 [node.js issues]…
    comment by Chyzwar · 2023-05-31 · in ES modules: A cartoon deep-dive (2018)
  25. Maybe comment or check out https://github.com/microsoft/TypeScript/issues/54276 that proposes transformer plugins?
  26. …[2] https://twitter.com/buildsghost/status/1301976526603206657 [3] https://github.com/microsoft/TypeScript/issues/14833
    comment by Vaguely2178 · 2023-05-15 · in How to sell Elixir again
  27. …https://stackoverflow.com/questions/64495793/typescript-name... https://github.com/microsoft/TypeScript/issues/30994#issueco... (link to a specific comment) > Namespaces are probably never going away and, simultaneously, y
  28. How do you type class properties? https://github.com/microsoft/TypeScript/issues/26811
    comment by brainzap · 2023-05-11 · in TS to JSDoc Conversion
  29. …> The spec is now an "archived" artifact and we won't be tracking defects against it anymore. - https://github.com/Microsoft/TypeScript/issues/15711
    comment by capableweb · 2023-05-07 · in Ditching TypeScript for JavaScript
  30. This is an issue open for discussion since 2017 https://github.com/microsoft/TypeScript/issues/13347
  31. …for that has a justification, but in contexts like this, I think it is a WAT-worthy interaction. https://github.com/microsoft/TypeScript/wiki/FAQ#why-are-fun...
    comment by jjnoakes · 2023-03-30 · in Wat [video] (2012)
  32. ▲ 29
    TypeScript cannot emit valid ES modules due to file extension issue (2020)
    story by new_user_final · 2023-03-20 · 14 comments
  33. ▲ 2
    TypeScript: Using var in limited contexts to avoid runtime TDZ checks
    story by EE84M3i · 2023-03-20 · 0 comments
  34. …they're going to start introducing runtime constructs, which is an interesting plot twist [2]. [1] https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... [2] https://medium.com/flow-type/clarity-on-flows-direction-and-...
    comment by lewisl9029 · 2023-03-16 · in TypeScript 5.0
  35. …code but... step by step. This seems like a big step for my personal TypeScript projects. :-D [1]: https://github.com/microsoft/TypeScript/pull/51669#issuecomm...
    comment by veidr · 2023-03-16 · in TypeScript 5.0
  36. Does Number.isInteger() still not serve as a Type Guard? https://github.com/microsoft/TypeScript/issues/21199#issueco...
    comment by benatkin · 2023-03-16 · in TypeScript 5.0
  37. From the PR ( https://github.com/microsoft/TypeScript/pull/51669 ): > New compiler options > - allowImportingTsExtensions: Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or…
    comment by brundolf · 2023-03-16 · in TypeScript 5.0
  38. …"strictest" mode, really). The "who should use this mode" section here I believe is still accurate: https://github.com/microsoft/TypeScript/pull/51669
    comment by jakebailey · 2023-03-16 · in TypeScript 5.0
  39. There's a full page of API breaks: https://github.com/microsoft/TypeScript/wiki/API-Breaking-Ch... Then, a new error about the deprecations of ancient options to be removed in 5.5: https://github.com/microsoft/TypeScript/issues/51909
    comment by jakebailey · 2023-03-16 · in TypeScript 5.0
  40. …the type system since template literal types landed, but I found this one particularly amusing. 0: https://github.com/microsoft/TypeScript/issues/14833 1: https://github.com/microsoft/TypeScript/issues/14833#issueco...
    comment by eyelidlessness · 2023-03-12 · in TypeScripting the technical interview
  41. …more widely known, and which I once heard described as having "accidentally Turing-complete" types: https://github.com/microsoft/TypeScript/issues/14833
    comment by cjbprime · 2023-03-12 · in TypeScripting the technical interview
  42. …you can imagine. This project[1] is one I actually return to frequently for practical ideas. 0: https://github.com/microsoft/TypeScript/issues/14833 1: https://github.com/sindresorhus/type-fest
  43. I just learned that there’s an open issue [0], apparently for introducing a similar feature. [0]: https://github.com/microsoft/TypeScript/issues/43505
    comment by Hackbraten · 2023-03-07 · in Parse, don't validate (2019)
  44. The Boolean one at least is pretty longstanding: https://github.com/microsoft/TypeScript/issues/16655 I imagine there are a lot of edge cases to wade through before mainlining.
  45. …included in TypeScript 5.0 planned for release on March 14th. TypeScript 5.0 Iteration Plan - https://github.com/microsoft/TypeScript/issues/51362
    comment by lioeters · 2023-02-13 · in <3 Deno
  46. …but it looks it didn't went too far [2] [1]: https://flow.org/en/docs/types/comments/ [2]: https://github.com/microsoft/TypeScript/issues/9694
    comment by augusto-moura · 2023-02-05 · in Jsdoc Cheatsheet
  47. …doable with mapped types in TS, to make it work without a compilation step though is pending on https://github.com/microsoft/TypeScript/issues/32063 Although in practice the mapped types to do this do slow down the typing service non…
  48. …where you have to import a file with the .js extension, despite the actual file being .ts: https://github.com/microsoft/TypeScript/issues/42151 , https://github.com/microsoft/TypeScript/issues/49083 , https://github.com/microsoft/TypeScript…
  49. …specify what you are importing before what you import this from. It can help, and was addressed in https://github.com/microsoft/TypeScript/issues/31658 quite a while ago. Typescript already maps all the exports that are available and what…
    comment by jayflux · 2023-01-09 · in Ideas for a JavaScript Stricter Mode
  50. Counter point - https://github.com/microsoft/TypeScript/blob/main/src/compil... - your task is to just make it a little bit faster. Where do you begin with a 2.65mb source file? It’s easy to miss the point of what the OP is saying here and…
    comment by CraigJPerry · 2023-01-03 · in Modules, not microservices