I'd like to use this option for more strict code, but I'm not sure how to get it to work nicely with e.g. libraries that were not developed with this in mind.
My current problem is an options object that has a property signature { ssl?: <other type> } and I'd like to instantiate it with a big object expression. In that expression, I currently have ssl: <some_condition> ? <value> : undefined, which works at runtime but fails this new check.
Is there a way to exclude this key from the object entirely based on an inline condition when constructing the object expression, such that the type check will pass in this case?