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. …It should be noted that object literals are exact by-default if there's a type annotation // Issue: https://github.com/Microsoft/TypeScript/issues/12936 type Diff<A, B> = Pick<A, Exclude<keyof A, keyof B>> // Rest<T> should be equal to…
  2. …the target and breaking things by adding es2015 to lib in your tsconfig compilerOptions [1] https://github.com/Microsoft/TypeScript/blob/5fb39769ada9ff7...
    comment by Alexendoo · 2018-09-22 · in Not Sucking at TypeScript: 3 Tips
  3. ▲ 42
    TypeScript support for ES Next pipeline operator
    story by valera_rozuvan · 2018-09-21 · 32 comments
  4. ▲ 1
    TypeScript
    story by ScottWRobinson · 2018-09-11 · 0 comments
  5. …seems like it might be the next step towards (pragmatic) perfection. It's very exciting! [1] https://github.com/Microsoft/TypeScript/wiki/FAQ
  6. TypeScript supports doing that as well :) https://github.com/Microsoft/TypeScript/wiki/Type-Checking-J...
    comment by Zalastax · 2018-09-02 · in TypeScript at Google
  7. See https://github.com/Microsoft/TypeScript/wiki/JSDoc-support-i... Also Google’s puppeteer project is typechecked with tsc and the type info is all in jsdocs https://github.com/GoogleChrome/puppeteer
    comment by nojvek · 2018-09-02 · in TypeScript at Google
  8. …side of things, as of typescript 3 and the latest @types/react it should work as you would expect: https://github.com/Microsoft/TypeScript/wiki/What%27s-new-in...
    comment by Alexendoo · 2018-09-02 · in TypeScript at Google
  9. …the typescript people? It's not just on the roadmap, it's in code review/iteration as of last week: https://github.com/Microsoft/TypeScript/pull/26797
    comment by wwwigham · 2018-09-02 · in TypeScript at Google
  10. …type narrowing bug that is two years old! You'd think Microsoft could have sorted this out by now. https://github.com/Microsoft/TypeScript/issues/9998
    comment by lexy0202 · 2018-09-02 · in TypeScript at Google
  11. …with the U.S. Govt it wont stop, and there will be a lot of crap before we get to that point. [1] https://github.com/Microsoft/TypeScript/issues/25376#issueco...
    comment by audiolion · 2018-08-29 · in Lerna relicences to protest ICE
  12. …IMHO it's less painful to use than Flow. Does Flow even has a compiler that doesn't rely on OCaml? https://github.com/Microsoft/TypeScript/wiki/JSDoc-support-i...
  13. …union types, casting and "unique symbol"[2]. [1] https://flow.org/en/docs/types/opaque-types/ [2] https://github.com/Microsoft/TypeScript/issues/4895#issuecom...
  14. …typing via JSDoc. I write complex types in a definition file and use them in JSDoc. Works great. https://github.com/Microsoft/TypeScript/wiki/JSDoc-support-i...
    comment by dinja15 · 2018-07-30 · in Announcing TypeScript 3.0
  15. They're talking about all the releases they've done since 2.0. Await/async support was added in v2.1: https://github.com/Microsoft/TypeScript/wiki/Roadmap#21-dece...
    comment by stupidcar · 2018-07-30 · in Announcing TypeScript 3.0
  16. …roadmap and while not exactly what I had in mind, Variadic Kinds is there and way more interesting: https://github.com/Microsoft/TypeScript/issues/5453
    comment by Legogris · 2018-07-30 · in Announcing TypeScript 3.0
  17. …is wonderful for a strict alternative to any--will be super useful at the seams of your app. [1] https://github.com/Microsoft/TypeScript/pull/13288
    comment by Stoids · 2018-07-12 · in Announcing TypeScript 3.0 RC
  18. …may only be created from object types" [1] and I think this feature is addressed by TS 3.0! [1] https://github.com/Microsoft/TypeScript/issues/13557 Call me crazy, but I really think TypeScript is the future of the web and I'm betting my…
    comment by sbjs · 2018-07-12 · in Announcing TypeScript 3.0 RC
  19. ▲ 3
    Ask HN: Typescript but for statically checking side-effects?
    story by skdotdan · 2018-06-23 · 0 comments
  20. ▲ 3
    VS Code: Refactor Promise Handlers to Async and Await
    story by velmu · 2018-06-20 · 0 comments
  21. So much better than the workaround here: https://github.com/Microsoft/TypeScript/issues/3960#issuecom... type TemplateTypedSelect = new () => Select<Template>; const TemplateTypedSelect = Select as TemplateTypedSelect; return…
    comment by btown · 2018-06-06 · in TypeScript 2.9 is now available
  22. > but when is this bug gonna be fixed: https://github.com/Microsoft/TypeScript/issues/11375 Looks like whenever 3.0 is released.
    comment by avtar · 2018-06-06 · in TypeScript 2.9 is now available
  23. …that this PR is technically a breaking change since unknown becomes a reserved type name", from https://github.com/Microsoft/TypeScript/pull/24439 which is the first item in the list.
    comment by praxxis · 2018-06-05 · in TypeScript 2.9 is now available
  24. I hope they will some day implement variadic types: https://github.com/Microsoft/TypeScript/issues/5453 . Also, the plan for a 3.0 release looks a bit underwhelming: https://github.com/Microsoft/TypeScript/wiki/Roadmap#30-july... . Why not…
    comment by huy-nguyen · 2018-06-05 · in TypeScript 2.9 is now available
  25. Hey I've been enjoying working with TypeScript lately, but when is this bug gonna be fixed: https://github.com/Microsoft/TypeScript/issues/11375 . You basically can't implement iterators while using `strictNullChecks`, and it's been broken…
    comment by camgunz · 2018-06-05 · in TypeScript 2.9 is now available
  26. …described here. https://material-ui.com/guides/typescript/#usage-of-withstyl... And this TS issue: https://github.com/Microsoft/TypeScript/issues/4881 The guide just comes off as a bunch of subpar workarounds.
    comment by vyrotek · 2018-05-19 · in Material UI v1 for React is out
  27. …= Diff<T, null | undefined>; // Remove null and undefined from T Source and the examples in: https://github.com/Microsoft/TypeScript/pull/21316
    comment by mushishi · 2018-05-10 · in The Logical Disaster of Null
  28. …world, there has been an open proposal for TypeScript to support pattern matching of some flavor. https://github.com/Microsoft/TypeScript/issues/165
    comment by ihsw2 · 2018-04-25 · in JavaScript Pattern Matching Proposal
  29. https://github.com/Microsoft/TypeScript/issues/202 It's in the roadmap, but discussions about it are still going on four years after the ticket was opened...
    comment by spiralx · 2018-03-27 · in Avoid Else, Return Early (2013)
  30. …their hackles about how poorly NPM is designed, and holding its community leaders accountable. 1. https://github.com/Microsoft/TypeScript/blob/b29e0c9e3ab2471...
    comment by carussell · 2018-02-22 · in Do not use NPM 5.7
  31. …of serious unfixed design flaws that make the problem pervasive, plus they refuse to fix them (see https://github.com/Microsoft/TypeScript/issues/9825 ).
  32. Also TypeScript Type System: https://github.com/Microsoft/TypeScript/issues/14833
  33. …context in the wings if you pay careful attention to the TypeScript type system. Take a look at https://github.com/Microsoft/TypeScript/pull/21316 and https://github.com/Microsoft/TypeScript/pull/21496 . This, combined with the existing…
  34. …basically any arguments. In future perhaps they will make this stricter, more discussion here: https://github.com/Microsoft/TypeScript/issues/212
  35. …in Javascript is only at stage 2 in it's way to standardization, so it's easier to solve there. [0] https://github.com/Microsoft/TypeScript/wiki/'this'-in-TypeS...
  36. …and thus it has bugs that render it useless for what I assume to be very common use-cases. [0] https://github.com/Microsoft/TypeScript/pull/21316
    comment by AriaMinaei · 2018-01-31 · in Announcing TypeScript 2.7
  37. ▲ 2
    Conditional Types are coming to TypeScript
    story by ligaz · 2018-01-23 · 0 comments
  38. …by that. > But they can (and had) added support for the |> operator. Doesn't seem like they did: https://github.com/Microsoft/TypeScript/issues/17718 https://github.com/facebook/flow/issues/5443
    comment by djedr · 2018-01-20 · in JS things I didn’t know existed
  39. …I hope mapped conditional types becomes a thing not too long from now, been waiting for a while :) https://github.com/Microsoft/TypeScript/issues/12424#issueco...
    comment by osdiab · 2018-01-17 · in Announcing TypeScript 2.7 RC
  40. …Even if I'm being charitable and look for the date when the PR ( https://github.com/Microsoft/TypeScript/pull/7140 ) was merged, we'd only get April 2016.
  41. …suppots mixed .js and .ts projects. You can even typecheck things based on jsdoc doc comments. https://github.com/Microsoft/TypeScript/wiki/Type-Checking-J... I really like typescript. I'm not a static typing fanatic like a lot of people…
  42. …bug[1] from a couple years ago was submitted Aug 4 and fixed Aug 5. I'm pretty satisfied ;) [0]: https://github.com/Microsoft/TypeScript/issues/21031 [1]: https://github.com/Microsoft/TypeScript/issues/4155
  43. …tickets to open tickets is far better than that of Flow: - TypeScript: 2,515 open, 12,716 closed -- https://github.com/Microsoft/TypeScript/issues - Flow: 1,830 open, 2,467 closed -- https://github.com/facebook/flow/issues I have to assume…
  44. …between clean ES6 and TypeScript's output but I can also set the target to ES5 and use it). FWIW: https://github.com/Microsoft/TypeScript/pull/12346 https://basarat.gitbooks.io/typescript/content/docs/types/li...
  45. …is a lot of legacy code hanging out in the compiler [1], i.e. prefer module over namespaces. [1] - https://github.com/Microsoft/TypeScript/blob/master/src/comp... It's also strange to me why they inline their interfaces, rather than…
  46. …documented anywhere? I could only find instructions the coding guideline indicating as much (here: https://github.com/Microsoft/TypeScript/wiki/Coding-guidelin... ) but couldn't find why. I'd love to know why, may better inform my usage of…
  47. …to me. - Scanner.Scan() https://github.com/golang/go/blob/master/src/go/scanner/scan... - scan() https://github.com/Microsoft/TypeScript/blob/master/src/comp... - Lexer::LexTokenInternal() https://github.com/llvm-mirror/clang/blob/master/li…
  48. Fun fact: they don't use 'class' in the compiler at all Looks like a class to me: https://github.com/Microsoft/TypeScript/blob/master/src/comp...
  49. …Other options mentioned are also good - the Typescript compiler ( https://github.com/Microsoft/TypeScript ) is good to get started with especially if you read this Gitbook: https://basarat.gitbooks.io/typescript/content/docs
  50. The TypeScript compiler itself is written in TypeScript: https://github.com/Microsoft/TypeScript