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
-
I don't understand what you are referring to - the TypeScript compiler has 0 (non-dev) dependencies: https://github.com/microsoft/TypeScript/blob/main/package.js... .
comment by paavohtl · 2022-10-09 · in TypeScript is now officially 10 years old -
…You can snipe all you want, but if you think it’s that easy to resolve maybe I can direct you to https://github.com/microsoft/TypeScript/pulls I’m not affiliated with the team in any way but I’m almost totally certain they’d welcome a…
comment by eyelidlessness · 2022-10-02 · in Ten Years of TypeScript -
…code” principle mentioned in this article). Here’s a good summary of the problems this causes: https://github.com/microsoft/TypeScript/issues/42151 I’m curious, how many people are using TSC only for type-checking, and a different system…
comment by iainmerrick · 2022-10-01 · in Ten Years of TypeScript -
…yet, as you have no way to test whether `property in unknown` or not. Well, until this is released! https://github.com/microsoft/TypeScript/pull/50666
comment by madeofpalk · 2022-09-23 · in Show HN: Ezno, a type checker for JavaScript and optimiser for React -
The type system is Turing-complete, after all… https://github.com/Microsoft/TypeScript/issues/14833
comment by tempodox · 2022-09-22 · in A text adventure game on TypeScript's type system -
…- https://github.com/typescript-eslint/typescript-eslint/issue... - https://github.com/microsoft/TypeScript/issues/21732 - https://github.com/microsoft/TypeScript/pull/50666
comment by lediur · 2022-09-20 · in Learn how to unleash the full potential of the type system of TypeScript -
Why yes it is: https://github.com/microsoft/TypeScript/issues/14833
comment by 9dev · 2022-09-20 · in Learn how to unleash the full potential of the type system of TypeScript -
…The original bug against Typescript was opened in 2016 as well: https://github.com/microsoft/TypeScript/issues/11274
comment by tuukkah · 2022-09-11 · in Ask HN: What's the best source code you've read? -
…LSP support is not a priority (in part because LSP is inadequate in its current form): https://github.com/microsoft/TypeScript/issues/39459
comment by tuukkah · 2022-09-11 · in Ask HN: What's the best source code you've read? -
And the type checker is a single 45k line file! https://github.com/microsoft/TypeScript/blob/main/src/compil...
comment by brandly · 2022-09-11 · in Ask HN: What's the best source code you've read? -
…It's clean, easy on the eyes with well placed white space and just the right amount of comments. https://github.com/microsoft/TypeScript/blob/main/src/compil...
comment by michaelwww · 2022-09-11 · in Ask HN: What's the best source code you've read? -
…Javascript Engine - https://github.com/bellard/quickjs The TypeScript language and compiler - https://github.com/microsoft/TypeScript
comment by lioeters · 2022-09-10 · in Ask HN: What's the best source code you've read? -
…just be a semantic checker on top of JS and nothing more. This has been mentioned more than once: https://github.com/microsoft/TypeScript/issues/9202#issuecom... https://github.com/microsoft/TypeScript/issues/10386#issueco...…
comment by maxgraey · 2022-08-25 · in From a WebAssembly Perspective -
Oracle Types did just that (although it was an April Fools joke), it was quite fun to play with. https://github.com/microsoft/TypeScript/pull/43480
comment by webstrand · 2022-08-25 · in Can Types Replace Validation? -
…> A typescript specification What does this mean? We have a pretty clear typescript spec[1]. [1] https://github.com/microsoft/TypeScript/blob/main/doc/spec-A...
comment by dvt · 2022-08-23 · in TypeScript is terrible for library developers -
…by using project references, but not going to downplay that it's an annoying refactor to do ( https://github.com/microsoft/TypeScript-Handbook/blob/master... ) - All of the problems with trpc are inherent of any ts thing that is heavilily…
comment by alexdotjs · 2022-08-15 · in Blitz.js – Fullstack Toolkit for Next.js -
…that is in scope for Javascript itself until the syntax has formally reached a stable state (see: https://github.com/Microsoft/TypeScript/issues/2103#issuecom... ) - so we're far from having a pure operator for this. But `pipe((n: number)…
comment by btown · 2022-08-07 · in A generically typed pipe function in TypeScript -
…checking. Replacing it with the individual packages almost completely eliminated that overhead. [0] https://github.com/microsoft/TypeScript/wiki/Performance#per... [1] https://user-images.githubusercontent.com/2109932/176479729-...
comment by janpot · 2022-08-01 · in What's TypeScript compiling? Use a treemap to find out -
¯\_(ツ)_/¯ used to build Typescript: https://github.com/microsoft/TypeScript/blob/main/Gulpfile.j...
comment by jitl · 2022-07-31 · in The Node ecosystem still has tooling problems -
…giving types a runtime footprint is on the official list of non-goals for the TypeScript project: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
comment by brundolf · 2022-07-28 · in HypeScript: Simplified TypeScript type system in TypeScript's own type system -
TS type system is Turing complete. https://github.com/microsoft/TypeScript/issues/14833
comment by int_19h · 2022-07-13 · in Tell HN: We are trying to get tail calls into the WebAssembly standard -
…- which had equally different, but equally frustrating problems. The ecosystem is a disaster. [1] https://github.com/microsoft/TypeScript/issues/40878
comment by josephg · 2022-07-03 · in Reimagining front-end web development with htmx and hyperscript -
arcanis has a PR to patch up the issue that's sat for a year plus now. https://github.com/microsoft/TypeScript/issues/43632 > In addition, if you want to have your app load as smaller chunks rather than a single large bundle, you need to…
comment by kitten_mittens_ · 2022-07-02 · in The new wave of React state management -
…need to be careful to ensure that things work even all the backing reducers aren't yet loaded. 1. https://github.com/microsoft/TypeScript/issues/32523
comment by etimberg · 2022-07-02 · in The new wave of React state management -
…experiment works out and that it gains traction, because it's a massive value add to TS IMO. [0] https://github.com/microsoft/TypeScript/issues/47658
comment by davidatbu · 2022-06-27 · in What's New in Python 3.11? -
…and then decided to publish it publicly. Here is the thread that describes the problem further: https://github.com/microsoft/TypeScript/issues/13618 I hope it can be helpful for someone. I also would like to hear if my approach has been…
comment by ozanyurtsever · 2022-06-23 · in Simple custom hook for React to get the type of the nested child -
…deepkit.io/blog/introducing-deepkit-framework and in very detail in the TypeScript Bytecode proposal: https://github.com/microsoft/TypeScript/issues/47658 . Soon in a new doc/ebook it is explained in great detail how it works and the API…
comment by marcjschmidt · 2022-06-08 · in Deepkit – High-Performance TypeScript Framework -
…blog was published[0]. I do thank you for pointing that out though, as it's totally relevant. [0] https://github.com/microsoft/TypeScript/pull/33294
comment by davidatbu · 2022-05-21 · in Migrating millions of lines of code to TypeScript -
…it (always/sometimes?) assumes function calls won't affect the results of type narrowing tests: https://github.com/microsoft/TypeScript/issues/9998
comment by peterkelly · 2022-05-14 · in Java record pattern matching in JDK 19 -
…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 -
…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 -
…[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