TS Meetup #5.5 - Tițian Cericova-Dragomir - Understanding Variance in the TypeScript Type System

preview_player
Показать описание
◭ Ever wondered why Array is assignable to Array, even though that doesn’t really seem safe? Have you seen the term ‘variance’ thrown around by TypeScript people, but haven’t gotten around to researching what that is? Then this is the talk for you! We will take a deep dive into the type system, understand the other way TypeScript determines assignability. We will start with the basics of what variance is, and then we will see how it impacts every aspect of the type system.

------------------------
Next:
------------------------
📚 Resources:

✅ Learn more about Prisma:

------------------------
💬 Connect with Prisma:
Рекомендации по теме
Комментарии
Автор

One of the best (and the only one) talk I found about TypeScript variance. Very insightful!

anuraghazra
Автор

where can i get the code in the video?

wangwei
Автор

This was fantastic. Thanks so much. Got the link for the issue mentioned at 32:45?

Michael-shfb
Автор

thanks. 17:49 shows how variance is broken in TS (i'm comparing to Scala and Kotlin). Absolute horror.

fgngejw