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
20082026
-
…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…
comment by paavohtl · 2018-10-02 · in Create React App 2.0: Babel 7, Sass, and More -
…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 -
▲ 42
TypeScript support for ES Next pipeline operatorstory by valera_rozuvan · 2018-09-21 · 32 comments
-
▲ 1
TypeScriptstory by ScottWRobinson · 2018-09-11 · 0 comments
-
…seems like it might be the next step towards (pragmatic) perfection. It's very exciting! [1] https://github.com/Microsoft/TypeScript/wiki/FAQ
comment by sdegutis · 2018-09-10 · in ReasonML: OCaml-like language by Facebook that compiles to JavaScript -
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 -
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 -
…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 -
…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 -
…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 -
…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 -
…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...
comment by nostalgeek · 2018-08-09 · in TypeScript is nearly half as popular as JavaScript for React apps -
…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...
comment by paavohtl · 2018-08-01 · in Fusion.js: A Plugin-Based Universal Web Framework -
…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 -
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 -
…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 -
…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 -
…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 -
▲ 3
Ask HN: Typescript but for statically checking side-effects?story by skdotdan · 2018-06-23 · 0 comments
-
▲ 3
VS Code: Refactor Promise Handlers to Async and Awaitstory by velmu · 2018-06-20 · 0 comments
-
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 -
> 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 -
…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 -
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 -
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 -
…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 -
…= 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 -
…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 -
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) -
…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 -
…of serious unfixed design flaws that make the problem pervasive, plus they refuse to fix them (see https://github.com/Microsoft/TypeScript/issues/9825 ).
comment by devit · 2018-02-19 · in Maybe you don't need Rust and WASM to speed up your JS -
Also TypeScript Type System: https://github.com/Microsoft/TypeScript/issues/14833
comment by egeozcan · 2018-02-15 · in A collection of things that are Turing-complete by accident (2013) -
…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…
comment by rictic · 2018-02-02 · in VS Code to autocomplete JavaScript class 'this' properties automatically -
…basically any arguments. In future perhaps they will make this stricter, more discussion here: https://github.com/Microsoft/TypeScript/issues/212
comment by DougBTX · 2018-02-02 · in VS Code to autocomplete JavaScript class 'this' properties automatically -
…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...
comment by supergreg · 2018-02-02 · in VS Code to autocomplete JavaScript class 'this' properties automatically -
…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 -
▲ 2
Conditional Types are coming to TypeScriptstory by ligaz · 2018-01-23 · 0 comments
-
…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 -
…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 -
…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.
comment by gr__or · 2018-01-17 · in Convert React JavaScript Code to TypeScript with Proper Typing -
…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…
comment by HumanDrivenDev · 2018-01-17 · in Convert React JavaScript Code to TypeScript with Proper Typing -
…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
comment by styfle · 2018-01-16 · in Convert React JavaScript Code to TypeScript with Proper Typing -
…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…
comment by Karnickel · 2018-01-16 · in Convert React JavaScript Code to TypeScript with Proper Typing -
…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...
comment by noir_lord · 2017-12-02 · in Transpiled For-Of Loops Are Bad for the Client -
…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…
comment by olingern · 2017-11-13 · in Ask HN: Which TypeScript codebase should I study to get better? -
…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…
comment by chamakits · 2017-11-09 · in Ask HN: Which TypeScript codebase should I study to get better? -
…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…
comment by klodolph · 2017-11-09 · in Ask HN: Which TypeScript codebase should I study to get better? -
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...
comment by Scarbutt · 2017-11-09 · in Ask HN: Which TypeScript codebase should I study to get better? -
…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
comment by Flux159 · 2017-11-09 · in Ask HN: Which TypeScript codebase should I study to get better? -
The TypeScript compiler itself is written in TypeScript: https://github.com/Microsoft/TypeScript
comment by klodolph · 2017-11-09 · in Ask HN: Which TypeScript codebase should I study to get better?