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. …checking [1]. The best you can do is run using --skipLibCheck to skip checking node_modules. [1] https://github.com/microsoft/TypeScript/issues/29651
  2. …types to be supported. There is an issue[1] about this which has been pending for 8 years. 1. https://github.com/microsoft/TypeScript/issues/1213
  3. Are we doing wishlists? All I want is the possibility of doing nominal typing. Hrmph: https://github.com/microsoft/TypeScript/issues/364 - https://github.com/microsoft/TypeScript/issues/4895
  4. If you were looking for an issue to subscribe to for the move to file feature, it’s here: https://github.com/microsoft/TypeScript/issues/29988 It’s a TypeScript language server issue
  5. …declares as a design goal that they don't use the type system to generate different code: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... Meanwhile in Dart, you can write: double d = 1; In Dart, doubles and integers are…
  6. …} Caveat is it takes a bit to convince TS this is sound, and you have to manually sync the names. ( https://github.com/microsoft/TypeScript/issues/32098 would help)
  7. TypeScript has the same; the whole type checker is in one massive file with 46,393 lines: https://github.com/microsoft/TypeScript/blob/main/src/compil... IIRC they cited performance reasons when compiling the compiler for the decision not…
  8. Little mini example in terms of LSP behaviour is fixing this bug: https://github.com/microsoft/TypeScript/issues/37816 I edit the results of gotoDefinition on the way through so I always jump to the one I want.
  9. …They also talk of this in a design meeting [3] and a member of TS team seems committed to it. [1] https://github.com/microsoft/TypeScript/issues/50457 [2] https://github.com/microsoft/TypeScript/issues/51362 [3]…
  10. These days, it's tracked at https://github.com/microsoft/TypeScript/issues/27891 . I have a gameplan to drop this by another 7 MB (by turning our executables into ESM), probably for 5.0 as well if we decide that Node versions older than 12…
  11. …install size issue back in 2018 and changing to modules seemed to have the biggest impact here! https://github.com/microsoft/TypeScript/issues/23339 For anyone curious, TS 1.0 was 7MB and today it’s 65MB.…
  12. …the PR for it. There are many many issues opened related to this in github, but to give an example https://github.com/microsoft/TypeScript/issues/16577
  13. This could change with an ongoing work to allow ts extension [1]. [1] https://github.com/microsoft/TypeScript/issues/37582
  14. …It also makes interop between Node and Deno more painful. But there is hope on the horizon. :) See https://github.com/microsoft/TypeScript/issues/37582 which is referenced in the 4.9 Iteration Plan as "Support .ts as a Module Specifier for…
  15. …Here's an example of the performance improvement that switching to ES modules alone can bring: https://github.com/microsoft/TypeScript/issues/39247 . [1] This is almost always true. A random exception to this is that some buggy compilers…
  16. ▲ 338
    PR that converts the TypeScript repo from namespaces to modules
    story by Kyza · 2022-11-02 · 196 comments
  17. …things like `Range<80, 120>` to clamp to a range. If something like "Negated types" ever happens ( https://github.com/Microsoft/TypeScript/pull/29317 ) it'll make even more options available. Also, if you haven't checked it out,…
  18. …variance like Kotlin is still an open question and requires further investigation. [1]: https://github.com/microsoft/TypeScript/issues/14833 [2]: https://io.livecode.ch/learn/namin/unsound [3]: https://arxiv.org/abs/1605.05274 [4]:…
    comment by bmc7505 · 2022-10-25 · in From zero to 10M lines of Kotlin
  19. …ergonomic, less time, etc) than 3rd party libs. TS devs really should reconsider this feature. https://github.com/microsoft/TypeScript/issues/15265
  20. I don't understand what you are referring to - the TypeScript compiler has 0 (non-dev) dependencies: https://github.com/microsoft/TypeScript/blob/main/package.js... .
    comment by paavohtl · 2022-10-09 · in TypeScript is now officially 10 years old
  21. …You can snipe all you want, but if you think it’s that easy to resolve maybe I can direct you to https://github.com/microsoft/TypeScript/pulls I’m not affiliated with the team in any way but I’m almost totally certain they’d welcome a…
    comment by eyelidlessness · 2022-10-02 · in Ten Years of TypeScript
  22. …code” principle mentioned in this article). Here’s a good summary of the problems this causes: https://github.com/microsoft/TypeScript/issues/42151 I’m curious, how many people are using TSC only for type-checking, and a different system…
    comment by iainmerrick · 2022-10-01 · in Ten Years of TypeScript
  23. …yet, as you have no way to test whether `property in unknown` or not. Well, until this is released! https://github.com/microsoft/TypeScript/pull/50666
  24. The type system is Turing-complete, after all… https://github.com/Microsoft/TypeScript/issues/14833
  25. …- https://github.com/typescript-eslint/typescript-eslint/issue... - https://github.com/microsoft/TypeScript/issues/21732 - https://github.com/microsoft/TypeScript/pull/50666
  26. Why yes it is: https://github.com/microsoft/TypeScript/issues/14833
  27. …The original bug against Typescript was opened in 2016 as well: https://github.com/microsoft/TypeScript/issues/11274
  28. …LSP support is not a priority (in part because LSP is inadequate in its current form): https://github.com/microsoft/TypeScript/issues/39459
  29. And the type checker is a single 45k line file! https://github.com/microsoft/TypeScript/blob/main/src/compil...
  30. …It's clean, easy on the eyes with well placed white space and just the right amount of comments. https://github.com/microsoft/TypeScript/blob/main/src/compil...
  31. …Javascript Engine - https://github.com/bellard/quickjs The TypeScript language and compiler - https://github.com/microsoft/TypeScript
  32. ▲ 5
    bug: TypeScript is not an ECMAScript superset post-ES2015
    story by merrywhether · 2022-09-01 · 2 comments
  33. …just be a semantic checker on top of JS and nothing more. This has been mentioned more than once: https://github.com/microsoft/TypeScript/issues/9202#issuecom... https://github.com/microsoft/TypeScript/issues/10386#issueco...…
    comment by maxgraey · 2022-08-25 · in From a WebAssembly Perspective
  34. Oracle Types did just that (although it was an April Fools joke), it was quite fun to play with. https://github.com/microsoft/TypeScript/pull/43480
    comment by webstrand · 2022-08-25 · in Can Types Replace Validation?
  35. …> A typescript specification What does this mean? We have a pretty clear typescript spec[1]. [1] https://github.com/microsoft/TypeScript/blob/main/doc/spec-A...
  36. …by using project references, but not going to downplay that it's an annoying refactor to do ( https://github.com/microsoft/TypeScript-Handbook/blob/master... ) - All of the problems with trpc are inherent of any ts thing that is heavilily…
    comment by alexdotjs · 2022-08-15 · in Blitz.js – Fullstack Toolkit for Next.js
  37. …that is in scope for Javascript itself until the syntax has formally reached a stable state (see: https://github.com/Microsoft/TypeScript/issues/2103#issuecom... ) - so we're far from having a pure operator for this. But `pipe((n: number)…
  38. …checking. Replacing it with the individual packages almost completely eliminated that overhead. [0] https://github.com/microsoft/TypeScript/wiki/Performance#per... [1] https://user-images.githubusercontent.com/2109932/176479729-...
  39. ¯\_(ツ)_/¯ used to build Typescript: https://github.com/microsoft/TypeScript/blob/main/Gulpfile.j...
  40. …giving types a runtime footprint is on the official list of non-goals for the TypeScript project: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
  41. ▲ 12
    Show HN: TypeScript Editor that generates structured forms from TypeScript types
    story by fwouts · 2022-07-27 · 9 comments
  42. TS type system is Turing complete. https://github.com/microsoft/TypeScript/issues/14833
  43. …- which had equally different, but equally frustrating problems. The ecosystem is a disaster. [1] https://github.com/microsoft/TypeScript/issues/40878
  44. arcanis has a PR to patch up the issue that's sat for a year plus now. https://github.com/microsoft/TypeScript/issues/43632 > In addition, if you want to have your app load as smaller chunks rather than a single large bundle, you need to…
    comment by kitten_mittens_ · 2022-07-02 · in The new wave of React state management
  45. …need to be careful to ensure that things work even all the backing reducers aren't yet loaded. 1. https://github.com/microsoft/TypeScript/issues/32523
    comment by etimberg · 2022-07-02 · in The new wave of React state management
  46. …experiment works out and that it gains traction, because it's a massive value add to TS IMO. [0] https://github.com/microsoft/TypeScript/issues/47658
    comment by davidatbu · 2022-06-27 · in What's New in Python 3.11?
  47. …and then decided to publish it publicly. Here is the thread that describes the problem further: https://github.com/microsoft/TypeScript/issues/13618 I hope it can be helpful for someone. I also would like to hear if my approach has been…
  48. …deepkit.io/blog/introducing-deepkit-framework and in very detail in the TypeScript Bytecode proposal: https://github.com/microsoft/TypeScript/issues/47658 . Soon in a new doc/ebook it is explained in great detail how it works and the API…
  49. …blog was published[0]. I do thank you for pointing that out though, as it's totally relevant. [0] https://github.com/microsoft/TypeScript/pull/33294
  50. …it (always/sometimes?) assumes function calls won't affect the results of type narrowing tests: https://github.com/microsoft/TypeScript/issues/9998
    comment by peterkelly · 2022-05-14 · in Java record pattern matching in JDK 19