how to define an Omit < SourceType, ExcludeProps extends keyof SourceType > generic type so that
- attribute with no key value in ExcludeProps in the result type
- there are attributes in the result type whose optional attribute is consistent with SourceType
I have several attempts as follows
".
Property "c" is missing in type "TargetType".