Schema_EXTENSION issues with extending a string schema with an empty struct in TypeScript
Is there a reason why the following is not allowed?
In TS, it's perfectly fine to have
This will result in having an experience in which one gets correct code suggestions listing
In TS, it's perfectly fine to have
string & {}. It's commonly used in situations that need to describe a few known values and the "rest". E.g.:This will result in having an experience in which one gets correct code suggestions listing
EventA and EventB as an option but the value can indeed be anything else, too.