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
-
now if they can just add a compiler flag for "immutable by default": https://github.com/microsoft/TypeScript/issues/32758
comment by findjashua · 2019-11-05 · in TypeScript 3.7 -
Yes, and that prevents duplication of work when it's time to upgrade: https://github.com/microsoft/TypeScript/issues/33272
comment by minxomat · 2019-10-12 · in Monorepo or Multirepo? Role-Based Repositories -
…(e.g. inside a `className` prop). However, TypeScript hasn't have good support for it yet ( https://github.com/microsoft/TypeScript/issues/4538 ) so we still need an explicit method to convert the instance to string.
comment by dvkndn3 · 2019-10-11 · in Brings TypeScript to Tailwind CSS -
…system is turing-complete[0], and there's a playground demonstrating number base conversion[1]. 0: https://github.com/Microsoft/TypeScript/issues/14833 1: https://github.com/Microsoft/TypeScript/issues/14833#issueco...
comment by thisBrian · 2019-10-02 · in TypeScript 3.7 Beta -
…that TS should be capable of understanding. I filed this as a bug to see if the developers agree: https://github.com/microsoft/TypeScript/issues/33743
comment by anderskaseorg · 2019-10-02 · in TypeScript 3.7 Beta -
You can see a list of all changes in the "What's New in TypeScript" document on GitHub: https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T... And a list of breaking changes here: https://github.com/microsoft/TypeScript/wiki/Breaki…
comment by jannes · 2019-09-09 · in Google Feedback on TypeScript 3.5 -
…is your (sometimes valid) choice. > Gradual typing CANNOT be sound TypeScript isn't sound [0]. [0] https://github.com/Microsoft/TypeScript/issues/9825
comment by eatonphil · 2019-09-04 · in TypeScript vs. ReasonML -
Just FYI, TypeScript is expressly a superset of JavaScript, so you don't need to guess! https://github.com/Microsoft/TypeScript TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
comment by jdmichal · 2019-09-04 · in ORMs Are Backwards -
https://github.com/microsoft/TypeScript/issues/16#issuecomme...
comment by city41 · 2019-08-29 · in TypeScript 3.6 -
…jsdoc. In fact, the TS team uses chrome devtools as a test case to validate their jsdoc interop: https://github.com/microsoft/TypeScript/tree/master/tests/ca...
comment by hoten · 2019-08-29 · in TypeScript 3.6 -
…TS being so close to have it, that's great news EDIT: here is the confirmation TS 3.7.0 got tagged: https://github.com/microsoft/TypeScript/issues/16#issuecomme... EDIT 2: wow just noticed, that the issue ID is "16" and it has been open…
comment by chriswwweb · 2019-07-30 · in What’s New in ES2019 -
…lines of handwritten code in a single file, which is getting up there for a high-level language: https://github.com/microsoft/TypeScript/blob/master/src/comp...
comment by billti · 2019-07-12 · in QuickJS JavaScript Engine -
…why they don't add them already. Also of course any form of runtime type checking is missing. [1] https://github.com/Microsoft/Typescript/issues/202
comment by phiresky · 2019-07-01 · in What I Want from a Type System (2016) -
…a language. [EDIT] - after some searching, maybe you're referring to this issue (amongst others): https://github.com/Microsoft/TypeScript/issues/9825 [0]: https://djcordhose.github.io/flow-vs-typescript/flow-typescr...
comment by hardwaresofton · 2019-06-24 · in Haskell Fan Site -
…ideas for improvements to TypeScript's documentation or website, we're currently asking for ideas: https://github.com/microsoft/TypeScript/issues/31983
comment by orta · 2019-06-20 · in Migrating 300k LOC from Flow to TypeScript -
Nice overview! I plan on building a larger version of this into the docs eventually https://github.com/microsoft/TypeScript/issues/31983#issueco...
comment by orta · 2019-06-20 · in Migrating 300k LOC from Flow to TypeScript -
…have been talking about how TypeScript's type system is (intentionally) unsound. For example see https://github.com/Microsoft/TypeScript/wiki/FAQ#why-are-fun... and the notes on soundness in https://www.typescriptlang.org/docs/handbook/type…
comment by matt_kantor · 2019-05-30 · in TypeScript 3.5 -
> especially now that they've added HKTs Hmm .. as far as I'm aware, they haven't added this yet: https://github.com/microsoft/TypeScript/issues/1213 Note that higher-kinded types (though I'd rather call it "higher-kinded polymorphism" or…
comment by maxdamantus · 2019-05-29 · in TypeScript 3.5 -
…which can also be pretty heavy. We're considering ways we can avoid a full type check: https://github.com/microsoft/TypeScript/issues/31417 In the meantime, you can try out turning on the `skipLibCheck` compiler option to see if that helps…
comment by DanRosenwasser · 2019-05-29 · in TypeScript 3.5 -
…with a GitHub issue [0] for adding the option to skip checking, but didn't see anything myself. [0] https://github.com/Microsoft/TypeScript/issues/29651
comment by PaulBGD_ · 2019-05-29 · in TypeScript 3.5 -
…checking and doing async checking during the dev process which speeds things up quite a bit. [1] https://github.com/Microsoft/TypeScript/issues/30663
comment by parhamn · 2019-05-29 · in TypeScript 3.5 -
…at this project (a random pick) with all those (virtual) safeguards, result: over 3600 issues!!! https://github.com/Microsoft/TypeScript I mean 3600+ issues, WTF!! And I should be using this tool to prevent issues in my software? Sometimes…
comment by black-alert · 2019-04-22 · in JavaScript debuggers are broken -
…a bit difficult to define a value as completely readonly in TypeScript. See this GitHub issue: https://github.com/Microsoft/TypeScript/issues/13923
comment by denisw · 2019-04-18 · in Show HN: Redux Preboiled – TypeScript-friendly Redux helpers, served à la carte -
It might have been --declarationMap, part of Typescript 2.9 https://github.com/Microsoft/TypeScript/wiki/What's-new-in-T... Jumping to definition works with typescript projects correctly when this is turned on, but it's still not a…
comment by Alexendoo · 2019-04-13 · in Why I Switched from Visual Studio Code to JetBrains WebStorm -
…named generics by using a single generic argument with named properties, inspired by this comment: https://github.com/Microsoft/TypeScript/pull/23696#issuecomm... But it's incredibly verbose, and doesn't support optional generic arguments…
comment by lewisl9029 · 2019-04-07 · in When to Use TypeScript – A Detailed Guide Through Common Scenarios -
…works when you consume the exports of the file but it doesn't when you're within that file (see https://github.com/Microsoft/TypeScript/issues/30304 ) which makes it useless imo. Also even if it worked, now that I think about it, I'm again…
comment by alan_n · 2019-04-07 · in When to Use TypeScript – A Detailed Guide Through Common Scenarios -
…supported by the TypeScript powered tooling which VS Code provides by default on an JS project. https://github.com/Microsoft/TypeScript/wiki/JsDoc-support-i...
comment by orta · 2019-04-07 · in When to Use TypeScript – A Detailed Guide Through Common Scenarios -
Apparently, Typescript type system is already Turing-complete: https://github.com/Microsoft/TypeScript/issues/14833
comment by mickael · 2019-03-31 · in TypeScript 3.4 -
They actually just merged a very important PR: https://github.com/Microsoft/TypeScript/pull/30215 It adds inference for higher order functions, and, from a bit of playing with the Typescript nightly build, ramda works much better. Once 3.4…
comment by bontaq · 2019-03-18 · in Higher-Order Type-Level Programming in Haskell [pdf] -
…to TypeScript for more productivity and safer development. Check this out if you haven't already: https://github.com/Microsoft/TypeScript/wiki/Type-Checking-J... Even if without any annotations, type inferencing can catch some bugs for you.
comment by gridlockd · 2019-03-16 · in Ask HN: Is jQuery on its way out? -
…it (their plan is hinged on an existing standard that is still being locked down for JS; details in https://github.com/Microsoft/TypeScript/issues/16 ). No real benefit in voting on it now, other than to express your added desire for a…
comment by fixermark · 2019-03-01 · in TypeScript: Vote for Experimental Support of Optional Chaining -
…of libraries [0] and I'm fully intending to drop Flow for TS. The single thing I'm waiting for is https://github.com/Microsoft/TypeScript/issues/21699 since we use a fair amount of custom jsx rendering [1]. That's the one main thing (for…
comment by bluepnume · 2019-01-25 · in Yarn's Future – v2 and beyond -
…want to do this yourself it's fairly trivial, the TS compiler API is at least documented somewhat: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compi... And of course you can read the source code for Webpack's typescript support.…
comment by jchw · 2019-01-24 · in Yarn's Future – v2 and beyond -
…and importantly it's still improving rapidly. You may be interested in the roadmap/changelog page: https://github.com/Microsoft/TypeScript/wiki/Roadmap
comment by nicoburns · 2019-01-24 · in Yarn's Future – v2 and beyond -
TypeScript works with JSDoc annotations: https://github.com/Microsoft/TypeScript/wiki/JsDoc-support-i...
comment by _hardwaregeek · 2019-01-24 · in Yarn's Future – v2 and beyond -
BINGO! I suggested this to typescript repo: https://github.com/Microsoft/TypeScript/issues/28337 Feel free to comment on it, but it seems it's impossible that they implement such kind of thing without breaking their "principles".
comment by knocte · 2019-01-23 · in TypeScript Tricks: Type Guards -
…the compiler any time soon. It's a shame because it would make a lot of my code more robust. [1]: https://github.com/Microsoft/TypeScript/issues/10734#issueco...
comment by benschulz · 2019-01-23 · in TypeScript Tricks: Type Guards -
https://github.com/Microsoft/TypeScript/wiki/Type-Checking-J...
comment by _9vpl · 2019-01-18 · in Future of TypeScript on ESLint -
…com/flow-type/hiding-implementation-details-w... [2] https://flow.org/en/docs/types/opaque-types/ [3] https://github.com/Microsoft/TypeScript/issues/15807#issueco...
comment by jamesisaac · 2019-01-16 · in Migrate Jest to TypeScript -
https://github.com/Microsoft/TypeScript/commit/d3b7058c2999f... over a year.
comment by PudgePacket · 2019-01-16 · in Migrate Jest to TypeScript -
…ugly, or very easy to be misleading, typeguards (granted, TS doesn't have decent typeguards, see https://github.com/Microsoft/TypeScript/issues/28337 ...). For these reasons, I applaud JS people moving to TS. But I will not recommend any…
comment by knocte · 2019-01-16 · in Migrate Jest to TypeScript -
…leave this link here :-) [2] 1: https://www.typescriptlang.org/docs/handbook/release-notes/t... 2: https://github.com/Microsoft/TypeScript/issues/14833
comment by emmanueloga_ · 2019-01-15 · in Porting 30K lines of code from Flow to TypeScript -
…in turn forces you to either resort to copy & paste coding, or fighting with the compiler. See https://github.com/Microsoft/TypeScript/issues/5863 for example.
comment by zukzuk · 2019-01-15 · in Porting 30K lines of code from Flow to TypeScript -
Ah, and there is at least one PR specifically for it: https://github.com/Microsoft/TypeScript/pull/25716
comment by WorldMaker · 2019-01-15 · in Porting 30K lines of code from Flow to TypeScript -
There's an issue mentioning it with a PR Welcome sign up: https://github.com/Microsoft/TypeScript/issues/27545
comment by WorldMaker · 2019-01-15 · in Porting 30K lines of code from Flow to TypeScript -
…was slightly better, since a lot of people just immediately bring in Lodash to any JS project. [0] https://github.com/Microsoft/TypeScript/issues/5453
comment by Stoids · 2019-01-14 · in Porting 30K lines of code from Flow to TypeScript -
…to check the state of static type checking for Javascript should take some time and read through - https://github.com/Microsoft/TypeScript/issues - https://github.com/facebook/flow/issues I do that quite a lot myself and have also…
comment by ItsMe000001 · 2018-10-27 · in Fear, trust and JavaScript: When types and functional programming fail -
…https://github.com/piotrwitek/react-redux-typescript-guide is my current favorite resource. [0]: https://github.com/Microsoft/TypeScript/issues/27484 [1]: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/28...
comment by jasonkillian · 2018-10-23 · in TypeScript support added to Create React App -
They have been working on the error UX for the last 2 releases and still have some things planned https://github.com/Microsoft/TypeScript/issues/26077
comment by testvox · 2018-10-23 · in TypeScript support added to Create React App -
…described in https://www.typescriptlang.org/docs/handbook/type-compatibil... More examples are on https://github.com/Microsoft/TypeScript/wiki/FAQ
comment by sephware · 2018-10-04 · in Deno – A secure TypeScript runtime on V8