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
-
…so it's consistent with not affecting code generation. (More Turing completeness discussion at https://github.com/Microsoft/TypeScript/issues/14833 ) Then there are other features that have no equivalent in JS. For example enums. And the…
comment by fulafel · 2021-08-24 · in Deno on MDN -
…but currently only via the tooling. It integrates with TS as a language service plugin ( https://github.com/Microsoft/TypeScript/wiki/Writing-a-Langu... ) so you get great warnings/errors, type inference and much more. To define standalone…
comment by somebee · 2021-08-17 · in Show HN: Imba – I have spent 7 years creating a programming language for the web -
…etc. can. They are upfront about this though and it's stated here in the design goals as a non-goal https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
comment by jamil7 · 2021-08-04 · in Are dynamic languages going to replace static languages? (2003) -
…for typescript or also implementing a second protocol that is sort of but not quite LSP. See https://github.com/microsoft/TypeScript/issues/39459
comment by thayne · 2021-07-19 · in Diffsitter: A tree-sitter based AST difftool to get meaningful semantic diffs -
▲ 49
TypeScript's Type System Is Turing Complete (2017)story by rendall · 2021-07-14 · 43 comments
-
…), Haskell, Rust ( https://sdleffler.github.io/RustTypeSystemTuringComplete/ ), Typescript ( https://github.com/Microsoft/TypeScript/issues/14833 ) ... Having a type system with generics and not being turing-complete as a result is the…
comment by jcelerier · 2021-07-08 · in Compiling Rust is NP-hard -
…wraps tsserver, but there is hope that microsoft could implement lsp protocol directly for tsserver https://github.com/microsoft/TypeScript/issues/39459#issueco... at which point the experience should be more comparable to coc.nvim. On a…
comment by mjlbach · 2021-07-03 · in Neovim v0.5 -
…of resolution, because the proposed fix (from a member of the TS team) has terrible performance: https://github.com/microsoft/TypeScript/issues/21699 But since React is a such a minor part of the JS/TS landscape, who can really blame the…
comment by stupidcar · 2021-06-28 · in Four approaches to implicit state in compound components, ranked -
…no more, and "inexact" types where such subtyping is allowed. TypeScript doesn't have this check ( https://github.com/Microsoft/TypeScript/issues/12936 ) and I've found it can be really error prone when you're wanting to return a copy of…
comment by seanwilson · 2021-06-26 · in Parse, Don't Validate (2019) -
Just adding a link for myself: https://github.com/Microsoft/TypeScript
comment by jcuenod · 2021-06-10 · in Ask HN: What's a good TS codebase to learn from? -
…This might be working well for M1, which has 4 high performance cores and 4 efficiency cores. [1]: https://github.com/microsoft/TypeScript/issues/30235
comment by jeswin · 2021-05-17 · in How M1 Macs feel faster than Intel models: it’s about QoS -
…that requires your input be below some threshold eg: `type Limit = 0..100;` See discussion here: https://github.com/Microsoft/TypeScript/issues/15480
comment by mbildner · 2021-05-15 · in Parsix: Parse Don't Validate -
This was kinda explored at the start of April this year: https://github.com/microsoft/TypeScript/pull/43480
comment by orta · 2021-05-07 · in JavaScript for Shell Scripting -
Do you know if that somehow fixes https://github.com/microsoft/TypeScript/issues/8677 ? That's still the most annoying thing about typescript for me.
comment by razze · 2021-04-20 · in Why we chose Elm for Humio’s web UI -
▲ 6
Add Oracle Types for TypeScriptstory by aleffert · 2021-04-01 · 0 comments
-
▲ 1
I wish TypeScript did not treat JavaScript native classes as interfacesstory by noseratio · 2021-03-16 · 0 comments
-
> Valid JavaScript is also valid Typescript. Unfortunately, no: https://github.com/microsoft/TypeScript/issues/1863
comment by Tade0 · 2021-03-10 · in Why Become a TypeScript Fan? -
…[1] https://v8.dev/blog [2] https://benchmarksgame-team.pages.debian.net/benchmarksgame/... [3] https://github.com/microsoft/TypeScript/pull/43035#issuecomm...
comment by Chyzwar · 2021-03-05 · in It Can Happen to You -
…and then it wouldn't lie to you, but that would probably break a lot of people's code. EDIT: https://github.com/microsoft/TypeScript/issues/26188
comment by presentation · 2021-03-03 · in How an Anti-TypeScript “JavaScript developer” like me became a TypeScript fan -
Not doing runtime checks is a deliberate decision: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... So Zod it is. I like it.
comment by gherkinnn · 2021-03-02 · in How an Anti-TypeScript “JavaScript developer” like me became a TypeScript fan -
…(I still think this is actually due to bug in TypeScript, see https://github.com/microsoft/TypeScript/issues/31990 .)
comment by evmar · 2021-03-02 · in How an Anti-TypeScript “JavaScript developer” like me became a TypeScript fan -
…protect us from our own code, but not external definitions/libraries. Relevant GitHub issue here — https://github.com/microsoft/TypeScript/issues/26188
comment by kipple · 2021-03-02 · in How an Anti-TypeScript “JavaScript developer” like me became a TypeScript fan -
Nominal types are on Typescript's roadmap: https://github.com/Microsoft/TypeScript/wiki/Roadmap Side note: An Introduction to Nominal TypeScript: What are nominal types and why should I use them? : https://medium.com/better-programming/nomi…
comment by eevilspock · 2021-02-17 · in Typing Is Hard -
This is being looked at https://github.com/microsoft/TypeScript/issues/31658
comment by jayflux · 2021-02-10 · in Using ES Modules in Node.js: A Practical Guide (Part 1) -
…"pedantic" option for index access [1]) option that would check against that potential errors. [1] https://github.com/microsoft/TypeScript/pull/39560
comment by mpawelski · 2021-02-06 · in Don't use functions as callbacks unless they're designed for it -
According to https://github.com/microsoft/TypeScript/wiki/Performance#pre... using union types in your example vs interfaces like #6 is bad for compilation performance.
comment by bengalister · 2021-02-02 · in Bad TypeScript Habits -
I hope Typescript will support Export Maps soon: https://github.com/microsoft/TypeScript/issues/33079
comment by wildpeaks · 2021-01-13 · in Get Ready for ESM -
…it is open-source.[0] It's sort of funny this pylance thing seems to suffer the same problem. [0]: https://github.com/microsoft/TypeScript/issues/39459
comment by prussian · 2021-01-10 · in Microsoft Refuses to Open Source VSCode Python Language Server -
…type A ≠ string-equivalent type B), though there's ongoing discussion around adding it ( https://github.com/Microsoft/TypeScript/issues/202 ).
comment by crooked-v · 2021-01-05 · in GUIDs Are Not the Only Answer -
In poking around, I found this: https://github.com/microsoft/TypeScript/issues/14833 Where someone actually implements a compile-time check for prime numbers. I guess saying that it _can't_ be done is inaccurate. It's just absolutely…
comment by amw-zero · 2021-01-05 · in Verified Programming in F*: A Tutorial -
…programming in TypeScript. I haven't given a close look yet, but here are some relevant links: - https://github.com/microsoft/TypeScript/issues/31364 - https://johtela.github.io/litscript/ - https://mistlog.github.io/ray-tracing/index.html
comment by hoten · 2020-12-31 · in Interview Transcript – Donald Knuth [pdf] -
…the system extensible so that external tools can use the compiler for more complex build workflows. https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
comment by 205g0 · 2020-12-10 · in Deno 1.6 supports compiling TypeScript to a single executable -
…In fact, the skipLibCheck flag was originally developed to improve NativeScript compile time: https://github.com/microsoft/TypeScript/issues/8521 Unfortunately, editing still feels slow to me when including NativeScript’s iOS/Android types…
comment by LinguaBrowse · 2020-11-25 · in Tips for Performant TypeScript -
…looked at the server logs (using the instructions on this page). That quickly led me to this bug: https://github.com/microsoft/TypeScript/issues/35036 . Even though it took a while to get fixed, I felt immensely better that the problem was…
comment by danvk · 2020-11-24 · in Tips for Performant TypeScript -
…are more performant on newer versions. (Notion is stuck on 3.4 because of this issue: https://github.com/microsoft/TypeScript/issues/31445 )
comment by jitl · 2020-11-24 · in Tips for Performant TypeScript -
…this. One of my colleagues wrote up on his work on TypeScript 4.1's `--generateTrace` flag: https://github.com/microsoft/TypeScript/wiki/Performance-Tra... That page can give some guidance on diagnosing what the compiler's time is going…
comment by DanRosenwasser · 2020-11-24 · in Tips for Performant TypeScript -
…code. In my opinion, both of those are far more important than small changes in compile time. [0] https://github.com/microsoft/TypeScript/wiki/Performance#usi...
comment by Etheryte · 2020-11-24 · in Tips for Performant TypeScript -
▲ 281
Tips for Performant TypeScriptstory by nkjoep · 2020-11-24 · 113 comments
-
…for JSON.parse() isn't inferred/deduced, it's explicit in lib.es5.d.ts (imported from lib.d.ts): https://github.com/microsoft/TypeScript/blob/master/lib/lib.... You could provide your own lib.d.ts with `unknown` type returned for…
comment by WorldMaker · 2020-11-20 · in TypeScript 4.1 -
▲ 2
TypeScript – don't require to implement optional abstract propertiesstory by valera_rozuvan · 2020-10-26 · 0 comments
-
…[1] https://github.com/yarnpkg/berry/blob/f384f0f40e87d636e4021b... [2] https://github.com/microsoft/TypeScript/pull/35206
comment by acemarke · 2020-10-24 · in Node.js 15.0 -
…TypeScript team will show interest eventually and we'll be able to streamline the development. [1] https://github.com/microsoft/TypeScript/pull/35206
comment by arcatek · 2020-10-23 · in Node.js 15.0 -
Apparently for markting reasons. https://github.com/Microsoft/TypeScript/issues/14116#issueco...
comment by jp3141 · 2020-10-12 · in Sentimental Versioning -
▲ 1
Pull Request for Higher-Kinded Types in TypeScriptstory by prmph · 2020-09-30 · 0 comments
-
…JS cruft. Apart from the i32, i64 stuff I guess. [1] https://github.com/tc39/proposal-temporal [2] https://github.com/Microsoft/TypeScript/pull/12253#issuecomm... [3] https://github.com/microsoft/TypeScript/issues/12936 [4]…
comment by inbx0 · 2020-09-28 · in Show HN: A SQL database implemented purely in TypeScript type annotations -
…it's basically the same :/ They're definition avoiding anything different now: see goal 6: https://github.com/microsoft/TypeScript/wiki/TypeScript-Desi...
comment by virtue3 · 2020-09-02 · in TypeScript is weakening the JavaScript ecosystem -
…at some point. (see other commends under my original). Your reasoning is unsound. I'm sorry. https://github.com/microsoft/TypeScript/wiki/TypeScript-Desi... Please see goal number 6. Typescript is an opensource language (probably in mostly…
comment by virtue3 · 2020-09-02 · in TypeScript is weakening the JavaScript ecosystem -
…years ago, and hilariously, someone linked that issue to the new types mentioned in this post :) https://github.com/microsoft/TypeScript/issues/14833 I've been using Typescript for years, and I still like it. But I'm starting to get…
comment by throwaway189262 · 2020-09-02 · in TypeScript: Template string types and mapped type 'as' clauses