You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've read https://www.typescriptlang.org/docs/handbook/advanced-types.html and checked the issues and it doesn't seem possible. I wanted to confirm that that's the case and if there were any plans for this "shorthand" type difference notation? Also if there's a better pattern to use when dealing with extended interfaces, for example the OOP class approach would simplify this but I was curious if it's possible to do easily with interfaces?
The text was updated successfully, but these errors were encountered:
Given:
I'm wondering if it is possible to get a type with the structure of
Concrete ∖ Base
(i.e.{field2: string }
) so that instead you could use:I've read https://www.typescriptlang.org/docs/handbook/advanced-types.html and checked the issues and it doesn't seem possible. I wanted to confirm that that's the case and if there were any plans for this "shorthand" type difference notation? Also if there's a better pattern to use when dealing with extended interfaces, for example the OOP class approach would simplify this but I was curious if it's possible to do easily with interfaces?
The text was updated successfully, but these errors were encountered: