Because UnionToIntersection only lets TypeScript match a single call
signature at a time during assignability, sibling assertions that share the
same leading phrase (e.g. sync 'to satisfy') would otherwise fight over
which one wins the overload resolution and leak their specific subject schema
into the executor return type. We instead union subjects across all
assertions whose leading phrases overlap, so every candidate overload for a
given .it(phrase, ...) call returns the same widened
ExpectItExecutor.
The function part of ExpectIt.
Because
UnionToIntersectiononly lets TypeScript match a single call signature at a time during assignability, sibling assertions that share the same leading phrase (e.g. sync'to satisfy') would otherwise fight over which one wins the overload resolution and leak their specific subject schema into the executor return type. We instead union subjects across all assertions whose leading phrases overlap, so every candidate overload for a given.it(phrase, ...)call returns the same widened ExpectItExecutor.