microsoft/TypeScript
View on GitHub ↗ ★ 111,725 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
-
Seems to be missing C# ( https://github.com/dotnet/roslyn ) with 6550 stars and Typescript ( https://github.com/Microsoft/TypeScript ) with 16876 stars.
comment by CurtHagenlocher · 2016-11-21 · in Most starred interpreters and compilers on GitHub -
…types you provide in JSDoc[1] so you will see benefits simply by using VS Code in most cases. [1]: https://github.com/Microsoft/TypeScript/wiki/JSDoc-support-i...
comment by svieira · 2016-11-03 · in Visual Studio Code 1.7.1 -
…3 yet, and might still be dropped. That said, there is a TS issue tracking adding support for it: https://github.com/Microsoft/TypeScript/issues/2103 .
comment by bcherny · 2016-10-12 · in Yarn – A new package manager for JavaScript -
…but many of their open source projects use unadulterated OS licenses. Typescript is Apache 2: https://github.com/Microsoft/TypeScript/blob/master/LICENSE.... Visual Studio Code is MIT: https://github.com/Microsoft/vscode/blob/master/LICENSE…
comment by TAForObvReasons · 2016-10-12 · in Facebook React.js License -
I'm fixing that in https://github.com/Microsoft/TypeScript/pull/11267
comment by bradleyayers · 2016-09-30 · in If TypeScript is so great, how come all notable ReactJS projects use Babel? -
And a whole lot more. https://github.com/Microsoft/TypeScript/wiki/Roadmap has a summary of the most important changes.
comment by wereHamster · 2016-09-22 · in Announcing TypeScript 2.0 -
…been released yet, but it's super confusing. [1]: https://www.npmjs.com/package/typescript [2]: https://github.com/Microsoft/TypeScript/releases
comment by Toddward · 2016-09-20 · in If TypeScript is so great, how come all notable ReactJS projects use Babel? -
…expensive tools that everyone have to buy into just to communicate with you once you are locked in. https://github.com/Microsoft/TypeScript is uh... right there. Check the license. Visual Studio code runs Textmate snippets and has a very…
comment by KirinDave · 2016-09-20 · in If TypeScript is so great, how come all notable ReactJS projects use Babel? -
…of the method Agreed! There's an open issue that addresses that scenario (and a ton of others): https://github.com/Microsoft/TypeScript/issues/6606
comment by saguiar · 2016-09-20 · in If TypeScript is so great, how come all notable ReactJS projects use Babel? -
> I use Typescript 2.0 RC No need to use the RC any more. 2.0 is out! https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T...
comment by ken47 · 2016-09-20 · in If TypeScript is so great, how come all notable ReactJS projects use Babel? -
…will be returned by Redux's "mapStateToProps" function, and sometimes this object can be big. [0] https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T... [1] https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T...
comment by mpawelski · 2016-09-20 · in If TypeScript is so great, how come all notable ReactJS projects use Babel? -
…apps, VS Code and TypeScript itself are pretty good examples. https://github.com/Microsoft/vscode https://github.com/Microsoft/typescript
comment by softawre · 2016-09-15 · in Angular 2 Final Released -
There are a lot of other new features as well that were introduced in the 2.0-beta release: https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T...
comment by freditup · 2016-08-30 · in Announcing TypeScript 2.0 RC -
…subset of TS. Are your explanations about Flow's strictness really applicable to this subset? See https://github.com/Microsoft/TypeScript/blob/master/doc/spec... > Here's an example that came up just last week: [...] (Note: This is not a…
comment by thorn0asdf · 2016-08-02 · in Flowtype 0.30 adds support for Windows -
…it as a deb package or Mac OS X pkg etc. without having to first install node.js/npm [1]: https://github.com/Microsoft/TypeScript/blob/master/src/comp... [2]: https://discuss.as3lang.org/t/the-case-when-you-dont-want-no...
comment by zwetan · 2016-07-27 · in Bringing ChakraCore to Linux and OS X -
Uhh, yes it is meant to be just annotations + ES6. https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... The exclamination is a forced cast to another type, just like "x as otherType". So this is still in the same category.
comment by spion · 2016-07-12 · in Announcing TypeScript 2.0 Beta -
…`undefined` are subtypes of `any`, so you can still gradually convert to typescript. (according to https://github.com/Microsoft/TypeScript/pull/7140 )
comment by legulere · 2016-07-11 · in Announcing TypeScript 2.0 Beta -
Another interesting addition is discriminated union types: https://github.com/Microsoft/TypeScript/pull/9163 This will greatly facilitate a more functional style of programming.
comment by ken47 · 2016-07-11 · in Announcing TypeScript 2.0 Beta -
There are a _lot_ more features than non-nullable types: https://github.com/Microsoft/TypeScript/wiki/What%27s-new-in...
comment by spankalee · 2016-07-11 · in Announcing TypeScript 2.0 Beta -
…compiler converts your html templates into TS, and then regular TS typechecking can take over. See https://github.com/microsoft/typescript/issues/6508 (and the GIF!)
comment by robwormald · 2016-06-29 · in Angular 2 – Best Practises -
…if I parens on the typeof check, it no longer works: if (typeof(x) === "string") I opened an issue: https://github.com/Microsoft/TypeScript/issues/9391 Thanks for the help!
comment by jdmichal · 2016-06-28 · in Migrating a 10,000-line legacy JavaScript codebase to TypeScript -
I agree, ADTs would be nice. In fact, we have a pull request out for it right now. [1] :) [1]: https://github.com/Microsoft/TypeScript/pull/9163
comment by DanRosenwasser · 2016-06-15 · in The Future of TypeScript Declaration Files -
…https://github.com/golang/go/graphs/contributors https://github.com/scala/scala/graphs/contributors https://github.com/Microsoft/TypeScript/graphs/contributors
comment by bcherny · 2016-06-07 · in Show HN: New calendar app idea -
What currently is in TypeScript: https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T...
comment by DJCordhose · 2016-06-07 · in Flow vs. Typescript -
Not equivalent - the TS compiler currently does not actually enforce the types in a JS file. See https://github.com/Microsoft/TypeScript/issues/4790#issuecom... The feature of parsing JSDoc comments is currently only used for providing…
comment by Arnavion · 2016-06-06 · in Flow vs. Typescript -
…as types, just more specific, so they're important if one is trying to draw a comparison. [1] https://github.com/Microsoft/TypeScript/wiki/Roadmap#20 [2] https://github.com/Microsoft/TypeScript/milestones
comment by whatever_dude · 2016-06-06 · in Flow vs. Typescript -
…} Is functionally identical to: function foo(a: string, b: number): string { return a + b; } See: https://github.com/Microsoft/TypeScript/issues/4790
comment by joshuacc · 2016-06-06 · in Flow vs. Typescript -
…to embed inot a lot of your files, so a reasonable effort to unwind, that matters. If you compare: https://github.com/Microsoft/TypeScript/milestones and https://github.com/Microsoft/TypeScript/wiki/Roadmap to the lack of information on…
comment by Bakesteve · 2016-06-06 · in Flow vs. Typescript -
Both differences in this presentation are addressed in TypeScript 2.0 https://github.com/Microsoft/TypeScript/wiki/Roadmap#20
comment by msoad · 2016-06-06 · in Flow vs. Typescript -
…an aim of TS to make it easier to continue using JS for those who prefer a half-way house, see: https://github.com/Microsoft/TypeScript/issues/4789
comment by danielearwicker · 2016-06-06 · in I Was Wrong About TypeScript -
see https://github.com/Microsoft/TypeScript/issues/8275
comment by robwormald · 2016-06-06 · in I Was Wrong About TypeScript -
…compiler will* accommodate you by compiling your JS alongside your TS code.[1] * TypeScript 1.8 [1] https://github.com/Microsoft/TypeScript/issues/4792
comment by ihsw · 2016-06-06 · in I Was Wrong About TypeScript -
…[1] c nonullable types [2] [1] https://www.typescriptlang.org/docs/handbook/advanced-types.... [2] https://github.com/Microsoft/TypeScript/pull/7140 As a Scala developer I like Typescript a lot. Which is a first for me in browser…
comment by joostdevries · 2016-06-05 · in I Was Wrong About TypeScript -
…i'd be convenient that any language being used for large projects would support this feature. [1] https://github.com/Microsoft/TypeScript/pull/7140
comment by randiantech · 2016-05-30 · in Null References: The Billion Dollar Mistake – Tony Hoare (2009) [video] -
…and the tree reuse, and so has benefitted from the architecture improvements for service work. [1] https://github.com/Microsoft/TypeScript/pull/8010
comment by wwwigham · 2016-05-13 · in Anders Hejlsberg on Modern Compiler Construction [video] -
…peers (who are very satisfied with a perfect ABNF and a parser which strictly adheres to it). [1] https://github.com/Microsoft/TypeScript [2] https://github.com/Microsoft/TypeScript/labels/Effort%3A%20E...
comment by wwwigham · 2016-05-13 · in Anders Hejlsberg on Modern Compiler Construction [video] -
…tooling integrations we'll get from Typescript - there's a cool GIF in this issue tracking the work https://github.com/Microsoft/TypeScript/issues/6508
comment by robwormald · 2016-05-03 · in Angular 2 Release Candidate -
…features coming to the type system that brings it closer to parity with Flow: Non-nullable types: https://github.com/Microsoft/TypeScript/pull/7140 Control flow type analysis: https://github.com/Microsoft/TypeScript/pull/8010 I wish…
comment by avolcano · 2016-04-27 · in TypeScript Won -
…compile everything in the "src" directory, my best option is to exclude every other directory. [0] https://github.com/Microsoft/TypeScript/issues/983
comment by jdmichal · 2016-04-27 · in TypeScript Won -
If you are using typescript, you should read: https://github.com/Microsoft/TypeScript/issues/7270 TLD'R: React 15.0 broke TSX in typescript but the workaround is easy.
comment by kuon · 2016-04-07 · in React v15.0 -
…want saner scoping rules. We should definitely update the docs to use let everywhere, though. [1]: https://github.com/Microsoft/TypeScript/issues/5822#issuecom...
comment by egeozcan · 2016-03-21 · in Non-nullable types for TypeScript -
…I filed. I was flabbergasted when I was told it was by design, to match JavaScript. The issue: https://github.com/Microsoft/TypeScript/issues/5822
comment by ridiculous_fish · 2016-03-21 · in Non-nullable types for TypeScript -
Well, with the last release, typescriot supposedly can compile plain js. https://github.com/Microsoft/TypeScript/wiki/What%27s-new-in... That should make it simple to treat ts more strict than js.
comment by geon · 2016-03-21 · in Non-nullable types for TypeScript -
…tps://github.com/jeffmo/es-class-fields-and-static-propert... or Support ES7: exponentiation operator https://github.com/Microsoft/TypeScript/issues/4812 Typescript seems to be more like ECMAScript.next + types rather than ES6 + types.
comment by bd82 · 2016-03-16 · in JavaScript libraries should be written in TypeScript -
…is the spread/rest syntax which is sometimes used in React projects isn't fully supported in TS: https://github.com/Microsoft/TypeScript/issues/2103 . I should point out you can use Babel and Typescript, so the Babel processes the output…
comment by tommyd · 2016-03-16 · in JavaScript libraries should be written in TypeScript -
…to the type system on the roadmap, for example support for non-nullable and variadic types: https://github.com/Microsoft/TypeScript/wiki/Roadmap Typescript may not be perfect but I'm glad to see it getting more attention as I think it can…
comment by tommyd · 2016-03-16 · in JavaScript libraries should be written in TypeScript -
…structural checking of interfaces right, but I beleive (correct me if I'm wrong, I'm referring to https://github.com/Microsoft/TypeScript/issues/202 ) that classes are also structurally checked. Flow does nominal checking for those, with…
comment by shados · 2016-03-12 · in State of the Art JavaScript in 2016 -
For a more complete list of features, check out our What's New in TypeScript page: https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T...
comment by DanRosenwasser · 2016-02-22 · in Announcing TypeScript 1.8 -
I think you're misunderstanding the feature, see here for more info: https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T...
comment by orf · 2016-01-28 · in Announcing TypeScript 1.8 Beta -
According to https://github.com/Microsoft/TypeScript/wiki/JSX , there are two JSX processing options. The first is a JSX passthru ("preserve" mode) and the second ("react" mode) will generate React.createElement, etc. See that page for the…
comment by saidajigumi · 2016-01-28 · in Announcing TypeScript 1.8 Beta