site icon indicating copy to clipboard operation
site copied to clipboard

Article: why named properties must be assignable to index signatures

Open JoshuaKGoldberg opened this issue 3 years ago • 1 comments

Overview

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

JoshuaKGoldberg avatar Aug 05 '22 21:08 JoshuaKGoldberg

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

JoshuaKGoldberg avatar Aug 08 '22 17:08 JoshuaKGoldberg