r/typescript • • Mar 04 '21

TypeScript reached 69k stars on GitHub

Thumbnail
twitter.com
284 Upvotes

r/typescript • • Apr 11 '25

Introducing Zod 4 beta

Thumbnail
v4.zod.dev
280 Upvotes

r/typescript • • Aug 01 '25

Announcing TypeScript 5.9

Thumbnail
devblogs.microsoft.com
278 Upvotes

r/typescript • • Apr 21 '26

Announcing TypeScript 7.0 Beta

Thumbnail devblogs.microsoft.com
264 Upvotes

r/typescript • • Jul 25 '24

Node.js adds experimental support for TypeScript

Thumbnail
github.com
264 Upvotes

r/typescript • • Jan 13 '24

Why is configuring TS so hard?

258 Upvotes

I wanted to start using typescript for my project to better handle runtime errors and also to use other typescript features

However it’s been 2 days since I’ve been trying to configure a proper typescript project without getting shouted at for every changes that I make (especially the import/require lines).

I have tried watching many videos on the same and also read a lot of articles and somehow I still cannot get past configuring the .json files for the project. At this rate I won’t be able to complete my actual project.

Any advice on how I can get past this?


r/typescript • • May 22 '25

Announcing TypeScript Native Previews

Thumbnail
devblogs.microsoft.com
253 Upvotes

r/typescript • • Aug 23 '21

When you want to get rid of that ugly no-explicit-any warning.

Post image
252 Upvotes

r/typescript • • May 13 '20

Deno 1.0 Released

Thumbnail
deno.land
252 Upvotes

r/typescript • • Jun 20 '25

TypeScript stuff I Wish I Knew Earlier

247 Upvotes

Picked up TS thinking it’d just be “JS + types.”

It’s not. It’s a mindset shift.

Some hard-earned lessons:

  • Don’t overtype everything. Let the compiler infer; it’s smarter than you think.

  • Avoid enum unless you really need it: union types are usually cleaner.

  • Never ignore errors with as many. That’s just JS in disguise. Learn how generics work: it’ll unlock 80% of advanced patterns.

TS makes you slow at first. But once it clicks? It’s like building with safety nets and jetpacks.

Still bump into new edge cases almost daily, especially while working on Alpha (an AI dev assistant for React + TS). It's interesting how, even with type safety, the real challenge is often unlearning and relearning, and having a hold of everything learnt.

Anyway, what’s one TS habit you had to unlearn?


r/typescript • • Nov 30 '24

A goodie from TS 5.8

242 Upvotes

The next iteration of the compiler is going to be super exciting. Version 5.8 includes months of effort by Gabriela Britto, finalized in the PR #56941, to support conditional types and indexed access types in function return types.

At last, we can properly type functions like the one in the snippet without relying on dubious overloads or clunky, unreliable hacks.

Link to the PR

Link to the playground

P.S. If this gets merged, we ain't gonna need that default case anymore in this situation.


r/typescript • • Feb 17 '25

AMA: I work at Prisma, we're moving from Rust to TS

240 Upvotes

Hey Reddit, I work at Prisma and we've recently announced that we're undergoing a major rewrite in which we're moving the core of Prisma ORM from Rust to TypeScript.

This core is responsible for managing DB connections, generating actual SQL queries, and a few more low-level things.

If you're curious to learn more about why we wrote the core in Rust in the first place, and why we're moving to TypeScript, you can read this recent article on our blog: From Rust to TypeScript: A New Chapter for Prisma ORM.

This topic has caused a lot of excitement in our community and we've seen many developers approaching us with questions, so we wanted to take the opportunity to have a public conversation around the move and give you all the chance to ask us questions directly.

Feel free to ask away :)


r/typescript • • Aug 13 '26

I would like to personally apologize to the creators of TypeScript

236 Upvotes

When I first started using it for work I hated it and cursed it. The syntax was weird and confusing. Annoying type errors.

But now that I've been using it, I definitely changed my mind. JS is filthy.. disgusting. You never know what type it is.
I learned TS alongside React, so that's also double confusion as I was learning it.

TS is great, and this is coming from Java/C# as my previous main languages. TS is now my favorite language to use. I love letting things be a mix of multiple types, like const temp: string | undefined. It's unfortunate C# doesn't support that. C# is my close second favorite language.


r/typescript • • 1d ago

Announcing TypeScript 7.1 RC

Thumbnail
devblogs.microsoft.com
235 Upvotes

r/typescript • • Mar 03 '20

Just learned about the Omit utility type! It constructs a type by picking all properties from an object and then removes any specified props.

Post image
234 Upvotes

r/typescript • • May 05 '25

Typescript changed my life

228 Upvotes

I used to write in regular JS and was ignorant to TS for years. I thought it was just some overhyped junk that’d die out, since after all it’s just a layer over JavaScript

Decided to try it on a new project a few months ago. I can’t believe I underestimated how much safer this is. I get a fraction of the production issues that I used to now


r/typescript • • May 26 '21

Announcing TypeScript 4.3

Thumbnail
devblogs.microsoft.com
226 Upvotes

r/typescript • • Aug 19 '24

Defining a Sudoku type in TypeScript

Thumbnail
github.com
225 Upvotes

r/typescript • • Jan 26 '23

Announcing TypeScript 5.0 Beta

Thumbnail
devblogs.microsoft.com
223 Upvotes

r/typescript • • Nov 09 '22

10-25% faster typescript compile times, 43% smaller npm package after Typescript codebase converted to modules

Thumbnail
github.com
223 Upvotes

r/typescript • • Jul 13 '20

I made a Snapchat clone in the browser!

223 Upvotes

r/typescript • • Jun 13 '19

Airbnb think 38% of their bugs could have been preventable by using Typescript

Post image
223 Upvotes

r/typescript • • Apr 12 '21

TypeScript reached 70k stars on GitHub

Thumbnail
twitter.com
219 Upvotes

r/typescript • • Oct 02 '25

The Temporal Dead Zone, or why the TypeScript codebase is littered with var statements

Thumbnail vincentrolfs.dev
208 Upvotes

I found it interesting that the TypeScript codebase uses `var` a lot and wrote this post about it. I'm happy for any feedback on my writing!