LearningTypeScript / site

Companion website for the Learning TypeScript book.
https://learningtypescript.com
MIT License
48 stars 12 forks source link

Article: why named properties must be assignable to index signatures #76

Open JoshuaKGoldberg opened 2 years ago

JoshuaKGoldberg commented 2 years ago

Overview

It's a quirk that I briefly mention in the book, but not strongly.

JoshuaKGoldberg commented 2 years ago

Oh, and -- the { ... [i: string]: unknown } trick for adding any arbitrary properties! It's come up a few times lately.