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
-
…= { A: 0, A: 1, } as enum; [0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... [1] https://github.com/microsoft/TypeScript/issues/59658
comment by conaclos · 2025-01-20 · in TypeScript enums: use cases and alternatives -
▲ 3
TypeScript doesn't follow semver due to marketing reasonsstory by chrcit · 2024-11-19 · 2 comments
-
…the effort for adding these isn't worth it. But maybe someone likes it or takes it further. [1]: https://github.com/microsoft/TypeScript/issues/43505
comment by nikeee · 2024-11-01 · in Sets, types and type checking -
…// Why var? It avoids TDZ checks in the runtime which can be costly. // See: https://github.com/microsoft/TypeScript/issues/52924 /* eslint-disable no-var */ var deferredDiagnosticsCallbacks: (() => void)[] = [];
comment by dunham · 2024-10-10 · in Proposal: JavaScript Structs -
Not really - https://github.com/Microsoft/TypeScript/issues/16607 . ts-morph provides an easy way to use the TypeScript Compiler API to view and edit the AST before compile. Once you get your head around the API, which has good examples…
comment by mhio · 2024-10-10 · in Zod: TypeScript-first schema validation with static type inference -
…mainstream adoption potential. https://twitter.com/MichaelArnaldi/status/178506160889445172... https://github.com/microsoft/TypeScript/pull/58337
comment by bjacobso · 2024-10-09 · in Zod: TypeScript-first schema validation with static type inference -
…you soon reach a point where you're just lulling yourself into a false sense of security. [1]: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
comment by fallingsquirrel · 2024-10-07 · in Rust needs a web framework -
…the browser's `crypto.randomUUID` function actually already use this technique to a lesser extent: https://github.com/microsoft/TypeScript/blob/121c5dd36bd87e4...
comment by throwitaway1123 · 2024-09-20 · in Microsoft TypeSpec -
…against that interface. Look at the early versions of the TypeScript compiler. Here's 1.8: < https://github.com/microsoft/TypeScript/blob/release-1.8/src... > tsc doesn't care whether it's running on Node or in the browser or somewhere…
comment by cxr · 2024-09-08 · in Going Buildless -
Issue #14833 - TypeScripts Type System is Turing Complete https://github.com/microsoft/TypeScript/issues/14833
comment by itishappy · 2024-08-23 · in Playing Sudoku in TypeScript while the type checker highlights mistakes -
▲ 1
Allow type annotations in .js files in preparation for Type Annotations proposalstory by novocantico · 2024-08-15 · 1 comment
-
…be achievable by native. [1]: https://github.com/kaleidawave/ezno/actions/runs/10299707325 [2]: https://github.com/microsoft/TypeScript/pull/58928
comment by bk496 · 2024-08-14 · in An approach to optimizing TypeScript type checking performance -
One example: https://github.com/microsoft/TypeScript/issues/30551 Which goes to https://github.com/microsoft/TypeScript/issues/9998 which captures a lot of such scenarios And just a few releases ago there were some big problems with…
comment by rty32 · 2024-07-25 · in Node.js adds experimental support for TypeScript -
What they probably meant was writing 'import "file.ts"' and have tsc emit 'import "file.js"'. https://github.com/microsoft/TypeScript/issues/49083
comment by boromisp · 2024-07-25 · in Node.js adds experimental support for TypeScript -
▲ 13
Alternative File-Type extension for TypeScript files (.ts = MPEG-2 video)story by popcalc · 2024-07-12 · 1 comment
-
…I'm not entirely convinced myself of that proposal, but maybe someone finds this interesting: https://github.com/microsoft/TypeScript/issues/43505
comment by nikeee · 2024-06-26 · in A brief introduction to interval arithmetic -
…to TypeScript, they might not have the incentive in investing in the TypeScript ecosystem. [1]: https://github.com/microsoft/TypeScript/issues/8#issuecommen... [2]: https://github.com/microsoft/TypeScript/issues/661#issuecomm... [3]:…
comment by rixtox · 2024-05-15 · in React Compiler is now open source -
…types too clever. I would prefer a dedicated syntax for nominal types. I made my own proposal: https://github.com/microsoft/TypeScript/issues/202#issuecomm...
comment by conaclos · 2024-05-15 · in Branded types for TypeScript -
…eventually be able to solve the problem the GP highlighted on top of those foundations. [1]: https://github.com/microsoft/TypeScript/pull/55600
comment by swift · 2024-04-25 · in JSR Is Not Another Package Manager -
And has some really odd behaviors like https://github.com/microsoft/TypeScript/issues/17053
comment by postepowanieadm · 2024-04-25 · in JSR Is Not Another Package Manager -
…all. It's refinement types, [4] or newtypes[5] depending on the details and how you shape it. [1] https://github.com/microsoft/TypeScript/blob/main/src/compil... [2] https://github.com/microsoft/TypeScript/issues/4895 [3]…
comment by wwwigham · 2024-04-25 · in TypeScript: Branded Types -
…[0] vs typescript contributions [1] [0] https://github.com/facebook/flow/graphs/contributors [1] https://github.com/microsoft/TypeScript/graphs/contributors
comment by mirekrusin · 2024-04-24 · in TypeScript: Branded Types -
▲ 2
Proposal: Types as Configurationstory by wwwigham · 2024-04-01 · 0 comments
-
…[1] contributions if you want. [0] https://github.com/facebook/flow/graphs/contributors [1] https://github.com/microsoft/TypeScript/graphs/contributors
comment by mirekrusin · 2024-03-07 · in Eloquent JavaScript 4th edition (2024) -
…away if functions are allowed to have union types, which is complicated but not impossible. See: https://github.com/microsoft/TypeScript/issues/15114
comment by BoppreH · 2024-03-06 · in Dada, an experimental new programming language -
…as issues where the TS team has discussed what they can and can't do in control flow analysis. [1] https://github.com/microsoft/TypeScript/issues/40844
comment by DylanSp · 2024-01-31 · in Adding type safety to object IDs in TypeScript -
…startsWith doesn't narrow the type, making this pattern slightly less convenient. The GH issue: https://github.com/microsoft/TypeScript/issues/46958
comment by zokier · 2024-01-30 · in Adding type safety to object IDs in TypeScript -
…Isolated Declarations [0]. If this is too much of work, then we will review our options. [0] https://github.com/microsoft/TypeScript/issues/47947
comment by conaclos · 2024-01-22 · in BiomeJS 2024 Roadmap -
▲ 1
TypeScript: Preserve type refinements in closures created past last assignmentstory by goranmoomin · 2024-01-06 · 0 comments
-
…https://dprint.dev/plugins/typescript/config/ [2] https://github.com/denoland/deno/issues/3818 [3] https://github.com/microsoft/TypeScript/pull/54820
comment by AntonCTO · 2023-12-25 · in Oxlint – JavaScript linter written in Rust -
▲ 5
Call it "sloppy mode" – Microsoft/TypeScript (2019)story by kripy · 2023-12-20 · 0 comments
-
…scenario in case something is missing). For example, the TypeScript team uses a line limit of 1000: https://github.com/microsoft/TypeScript/blob/1797837351782e7...
comment by dsherret · 2023-11-27 · in $20k bounty was claimed -
…prefer interface inheritance over type merging, for both performance and correctness reasons: https://github.com/microsoft/TypeScript/wiki/Performance#pre...
comment by chatmasta · 2023-11-26 · in Favour TypeScript Types over Interfaces -
…to be modified accordingly; this often takes significant time. Here's the long-lived Github issue: https://github.com/microsoft/TypeScript/issues/14419 And here's the newest proposal to add official support:…
comment by jumploops · 2023-11-19 · in Show HN: MonkeyPatch – Cheap, fast and predictable LLM functions in Python -
…code, and the language itself does not affect runtime behavior (with the exception of enums). [0]: https://github.com/microsoft/TypeScript/issues/14833
comment by maxloh · 2023-11-09 · in Interesting Bugs Caught by ESLint's no-constant-binary-expression (2022) -
…It's a bit easier to find compiler bugs when new features are getting added pretty frequently. [1] https://github.com/microsoft/TypeScript/issues/35970
comment by DylanSp · 2023-11-04 · in Sometimes, it is a compiler bug (2022) -
https://github.com/microsoft/TypeScript/issues/13219
comment by uallo · 2023-10-31 · in Unwrapit provides a way to handle errors in JS/TS -
…narrowing on untrusted data typecast to unknown I ran into a handful of problems documented here: https://github.com/microsoft/TypeScript/issues/25720 Working with untrusted types in a GraphQL project lead me to creating that JsonObject…
comment by r3trohack3r · 2023-10-26 · in Show HN: Instant API – Build type-safe web APIs with JavaScript -
…to this bug [1], even the typescript compiler’s npm doesn’t include source or sourcemaps. [1] https://github.com/microsoft/TypeScript/issues/32207
comment by skybrian · 2023-10-25 · in Web components will outlive JavaScript frameworks -
…tested currently. This would make recursion impossible. That sounds like a reasonable resolution. https://github.com/microsoft/TypeScript/issues/14833
comment by Zamicol · 2023-10-20 · in Flappy Bird implemented in TypeScript types -
…completeness is accidental, and in the case of CSS a security concern. (In the case of TS, see https://github.com/microsoft/TypeScript/issues/14833 ) If anyone has more historical evidence that this is so for CSS, reactions from original…
comment by jonahx · 2023-10-20 · in Flappy Bird implemented in TypeScript types -
…that this is just standard fare for mature typing systems. TypeScript's types are Turing complete: https://github.com/microsoft/TypeScript/issues/14833 Python's type hints are Turing complete: https://arxiv.org/abs/2208.14755 Java generics…
comment by bhouston · 2023-09-18 · in Memory-efficient enum arrays in Zig -
…itself will never integrate something like this as it goes against their design goals[1]. [1] https://github.com/microsoft/TypeScript/wiki/TypeScript-Desi...
comment by rossng · 2023-09-15 · in We use TypeScript not based on preference, but because we want to make money -
TypeScripts Type System is Turing Complete #14833 https://github.com/microsoft/TypeScript/issues/14833
comment by EMM_386 · 2023-09-09 · in Show HN: Conway's Game of Life in TypeScript's type system -
…to hear about them if you don't mind. I personally only had one bug that was caused by TS itself ( https://github.com/microsoft/TypeScript/issues/40726 ) so I'm curious to hear about the issues you encountered.
comment by dezsiszabi · 2023-09-06 · in Remove TypeScript -
What do you use for type checking in dev - tsserver? https://github.com/microsoft/TypeScript/wiki/Standalone-Serv... Regarding this, it's a pity there's no officially maintained support for the language server protocol in TypeScript, and…
comment by tuukkah · 2023-09-06 · in Remove TypeScript -
▲ 11
TypeScript Meta Type System – A Proposalstory by prmph · 2023-09-02 · 3 comments
-
The direct link to the reason is here: https://github.com/microsoft/TypeScript/issues/13219#issueco... All in all, a well-reasoned decision. And I say that as someone who actually likes typed and checked exceptions.
comment by jdlshore · 2023-08-26 · in TypeScript team's reasoning for rejecting typed/checked exceptions -
▲ 19
TypeScript team's reasoning for rejecting typed/checked exceptionsstory by rane · 2023-08-25 · 1 comment
-
…declaration mode promises great improvements: until 75% of reduction in compilation time! [0] [0] https://github.com/microsoft/TypeScript/pull/53463#issuecomm...
comment by conaclos · 2023-08-18 · in TypeScript is surprisingly ok for compilers