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
-
▲ 9
Ask HN: TypeScript config confusionstory by w3456yhbvr5yh · 2022-05-13 · 2 comments
-
…loper.mozilla.org/en-US/docs/Web/JavaScript/Refe... 1 - https://exploringjs.com/es6/ch_async.html 2 - https://github.com/microsoft/TypeScript/issues/6283#issuecom...
comment by gherkinnn · 2022-05-08 · in The triple dot syntax (` `) in JavaScript: rest vs. spread -
…it in case anyone is looking to use this feature and might hit the same issues. The TS issue is https://github.com/microsoft/TypeScript/issues/47945 if you'd like to see more details.
comment by tomduncalf · 2022-05-05 · in Misusing TypeScript assertion functions for fun and profit -
…types (which is why one could argue to not implement them), but it's interesting nonetheless. [1]: https://github.com/microsoft/TypeScript/issues/43505
comment by nikeee · 2022-04-22 · in TypeScript and Set Theory -
▲ 3
TypeScript Instantiation Expressionsstory by soheilpro · 2022-04-11 · 1 comment
-
…packages as dependended on by public repos. For instance, the repos that depend on Typescript: https://github.com/microsoft/TypeScript/network/dependents?p... There's often less tooling available for private repository hosts and private…
comment by WorldMaker · 2022-04-07 · in Advantages of Monorepos (2015) -
TypeScript's checker.ts is a 2.65 MB file containing 44,932 lines at the moment. https://github.com/microsoft/TypeScript/blob/main/src/compil... Does anyone know why and how they maintain it?
comment by scoresmoke · 2022-04-03 · in A project with a single 11,000-line code file -
…types. Will the standardisation of type annotations impose further constraints on typescript? [0] - https://github.com/microsoft/TypeScript/wiki/Roadmap#future
comment by azangru · 2022-03-10 · in First look: adding type annotations to JavaScript -
…TypeScript and now I don't want to touch the stuff. TS is much more ergonomic and expressive. [1]: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
comment by neurotrace · 2022-03-09 · in A Proposal for Type Syntax in JavaScript -
…(and the compiler) way more complex and difficult. GitHub issue about the Turing completeness: https://github.com/microsoft/TypeScript/issues/14833 Proof of Turing completeness: https://gist.github.com/hediet/63f4844acf5ac330804801084f87a..…
comment by ReleaseCandidat · 2022-02-02 · in An introduction to type programming in TypeScript -
▲ 2
TypeScript Bytecode Interpreter / Runtime Typesstory by marcjschmidt · 2022-01-30 · 0 comments
-
…[0] as a NPM build with: "typescript": "npm:@typescript-deploys/pr-build@4.6.0-pr-43617-23" [0] https://github.com/microsoft/TypeScript/pull/43617
comment by klavinski · 2022-01-30 · in A pipe operator for JavaScript: introduction and use cases -
…The Typescript compiler performance wiki might also be of interest: https://github.com/microsoft/TypeScript/wiki/Performance
comment by rslabbert · 2022-01-26 · in I’m porting the TypeScript type checker tsc to Go -
…hints that they might move towards more parallel processing but it requires a lot of major changes https://github.com/microsoft/TypeScript/issues/30235
comment by msoad · 2022-01-25 · in I’m porting the TypeScript type checker tsc to Go -
…the same ~38,000 files in this directory from the test cases, you're pretty much on par with tsc: https://github.com/microsoft/TypeScript/tree/main/tests/base...
comment by pcj-github · 2022-01-25 · in I’m porting the TypeScript type checker tsc to Go -
Related: https://github.com/microsoft/TypeScript/issues/42813
comment by AbuAssar · 2022-01-25 · in Deno in 2021 -
…gist.github.com/sindresorhus/a39789f98801d908bbc7ff3... And for the problems with esm and TypeScript: https://github.com/microsoft/TypeScript/issues/46452
comment by heijmans · 2022-01-22 · in NPM chalk goes esm-only and disables issues -
…really ugly. I hope somebody will make at least a babel plugin or something to allow that. [1]: https://github.com/microsoft/TypeScript/issues/6936
comment by captainmuon · 2022-01-21 · in TypeScript Features to Avoid -
…as your example. From the language goals > 4. Emit clean, idiomatic, recognizable JavaScript code. https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
comment by donatj · 2022-01-20 · in TypeScript Features to Avoid -
…with TypeScript's design goals. Specifically, the one to: > Avoid adding expression-level syntax. https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... And that makes sense to me. IMHO it's best to consider TypeScript as a tool…
comment by Vinnl · 2022-01-20 · in TypeScript Features to Avoid -
…going for. It's pretty what TypeScript's going for though: > Avoid adding expression-level syntax. https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
comment by Vinnl · 2022-01-20 · in TypeScript Features to Avoid -
I really don’t remember, sorry. I just scanned through https://github.com/Microsoft/TypeScript/wiki/Breaking-Change... and nothing jogged my memory; I’m wondering if it actually was something to do with decorators, though I still think…
comment by chrismorgan · 2022-01-20 · in TypeScript Features to Avoid -
…types in languages like Rust: - https://stackoverflow.com/questions/40275832/typescript-has-... - https://github.com/microsoft/TypeScript/issues/32690 In a TS codebase I'm currently working on, we have the policy of never using "plain" TS…
comment by dbrgn · 2022-01-20 · in TypeScript Features to Avoid -
…is a superset[1] of javascript, so typescript-only syntactic sugar is entirely to be expected. [1]: https://github.com/microsoft/TypeScript (repo description)
comment by maronato · 2022-01-20 · in TypeScript Features to Avoid -
A discussion on checked exceptions in TypeScript: https://github.com/microsoft/TypeScript/issues/13219
comment by WolfOliver · 2022-01-13 · in Does any other language than Java has the throws keyword to declare exceptions? -
…is U): U[]; Additionally, getting TS better at inferring type guards is an open issue (literally): https://github.com/microsoft/TypeScript/issues/38390
comment by amitport · 2022-01-06 · in Flatten Arrays in Vanilla JavaScript with Flat() and FlatMap() -
…but the ergonomics of `flatMap` type-wise are so much nicer! Just some interesting trivia. [0]: https://github.com/microsoft/TypeScript/issues/16069#issueco...
comment by jasonkillian · 2022-01-05 · in Flatten Arrays in Vanilla JavaScript with Flat() and FlatMap() -
https://github.com/microsoft/TypeScript/blob/main/src/compil...
comment by ameliaquining · 2022-01-01 · in Do we need a link step? -
Unfortunately the typescript definitions for these two methods haven't been written yet [1]. [1] https://github.com/microsoft/TypeScript/issues/47171
comment by ksbrooksjr · 2021-12-29 · in Using GroupBy on an array of objects in JavaScript -
> but it's not true of generics in most languages not sure how true that is. * TypeScript: https://github.com/microsoft/TypeScript/issues/14833 * Rust: https://sdleffler.github.io/RustTypeSystemTuringComplete/ * Haskell (GHC):…
comment by wk_end · 2021-12-27 · in A Review of the Zig Programming Language (Using Advent of Code 2021) -
…holder on this fork, but left the MIT license in place. How does this harm anyone? Here you go: https://github.com/microsoft/TypeScript Just fork TypeScript, change the copyright holder to yourself, and do what you want with it. I sure…
comment by thesuperbigfrog · 2021-12-25 · in Microsoft forked MIT licensed repo and changed the copyright [fixed] -
…JS++ cannot read TypeScript, it's a completely new/different language. [0] https://github.com/microsoft/TypeScript/issues/29651
comment by eatonphil · 2021-12-21 · in Speedy Web Compiler – a fast TypeScript/JavaScript compiler -
…and then you get both a TS type AND a JS parser/validator (which works as a TS typeguard). [1] https://github.com/microsoft/TypeScript/wiki/TypeScript-Desi... [2] https://github.com/colinhacks/zod
comment by kipple · 2021-12-13 · in Deno Joins TC39 -
…sure there's room to complain, unless you disagree with the direction they're taking the project: https://github.com/microsoft/TypeScript/blob/main/LICENSE.tx...
comment by TimTheTinker · 2021-12-13 · in Deno Joins TC39 -
…fan of TS, however, it's not likely ever going to be the thing that it's really close to being. [1] https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
comment by jollybean · 2021-12-13 · in Deno Joins TC39 -
…about it!). Looks like it's on the community's radar at least, so hopefully they fix it some day: https://github.com/Microsoft/TypeScript/issues/13347 Arrays are treated correctly though, at least: https://www.typescriptlang.org/play?#code/…
comment by brundolf · 2021-11-25 · in How JavaScript engines achieve great performance -
…if my code is ANY more robust than if I had written it in JavaScript. Record<> is broken/unsound: https://github.com/microsoft/TypeScript/issues/45335 Generics are wonky and sometimes wrong: https://github.com/microsoft/TypeScript/issues/31…
comment by ragnese · 2021-11-24 · in How JavaScript engines achieve great performance -
…structure with all the corresponding drawbacks. [0] https://stackoverflow.com/q/56034226/247441 [1] https://github.com/microsoft/TypeScript/issues/26223
comment by strogonoff · 2021-11-17 · in The perfect configuration format? Try TypeScript -
Yep, that is exactly what it is, just a simple GH webhook to azure develops / GitHub Actions trigger. https://github.com/microsoft/TypeScript/issues/46177#issueco...
comment by orta · 2021-11-04 · in TypeScript: Control flow analysis for destructured discriminated unions -
The PR is the article submitted in this thread, https://github.com/microsoft/TypeScript/pull/46266
comment by nextaccountic · 2021-11-04 · in TypeScript: Control flow analysis for destructured discriminated unions -
…2, // typo } x(y) The above is caught in Flow when exact types are enabled but not in TS. TS issue https://github.com/microsoft/TypeScript/issues/12936 TS has a concept of "freshness" which catches some of these mistakes when you construct…
comment by inbx0 · 2021-11-03 · in TypeScript: Control flow analysis for destructured discriminated unions -
▲ 3
TypeScript: Simplify relationship check for conditional type on target sidestory by tosh · 2021-11-03 · 0 comments
-
Also: https://github.com/microsoft/TypeScript/pull/46429 . Anders is on a roll!
comment by sizediterable · 2021-11-03 · in TypeScript: Control flow analysis for destructured discriminated unions -
…this pull request, you can do the above. This can be convenient with patterns like reducers (see https://github.com/microsoft/TypeScript/issues/46143 for an example).
comment by arxanas · 2021-11-03 · in TypeScript: Control flow analysis for destructured discriminated unions -
▲ 299
TypeScript: Control flow analysis for destructured discriminated unionsstory by tosh · 2021-11-03 · 107 comments
-
…in Minor updates [1]) [0]: https://devblogs.microsoft.com/typescript/announcing-typescr... [1]: https://github.com/microsoft/TypeScript/issues/14116#issueco...
comment by j1elo · 2021-10-13 · in Tricks I wish I knew when I learned TypeScript -
…its history in [2]. [0] https://github.com/arcanis/typanion [1] https://github.com/jquense/yup [2] https://github.com/microsoft/TypeScript/issues/3628
comment by Etheryte · 2021-10-12 · in Tricks I wish I knew when I learned TypeScript -
…, and ponder applications to just-slightly-too-powerful type theories. Or https://github.com/Microsoft/TypeScript/issues/14833 .
comment by jerf · 2021-10-01 · in Where do type systems come from? (2017) -
…because it splits the TS community to those who write Deno and those who write regular TS. [1]: https://github.com/microsoft/TypeScript/issues/27481
comment by Ciantic · 2021-09-01 · in Deno Deploy Beta 2