-
While I understand the motivation for this design, I do feel in practice it ends up being one of the biggest pain points in TS. In reality, you very often know exactly which keys will be present. Those cases require a great deal of ceremony and/or casting. If some version of the Exact types proposal were implemented, IMO it would be the biggest feature in years.
-
Civic Auth
Auth in Less Than 5 Minutes. Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today.
-
proposal-record-tuple
ECMAScript proposal for the Record and Tuple value types. | Stage 2: it will change!
I suspect considering the strong desire to maintain consistency with JavaScript, we will eventually see something that when the Record proposal passes through tc39
Related posts
-
Are there common bad usages of “as”?
-
Future Javascript: Records and Tuples
-
Typescript says object is possibly 'undefined' for an object property, even after checking/narrowing if the property exists.
-
All I Want for Christmas Is These Seven TypeScript Improvements
-
The Record/Tuple ECMAScript Proposal has been withdrawn