BUPKIS
    Preparing search index...

    Type Alias ExpectItSubject<Parts, AllAssertions>

    ExpectItSubject: [AllAssertions] extends [never]
        ? Parts[0] extends StandardSchemaV1<infer Input> ? Input : unknown
        : SubjectUnionForOverlap<AllAssertions, Parts>

    Resolves the subject type accepted by an .it() executor.

    With a populated AllAssertions union, the subject is widened across every assertion that shares a phrase and takes overlapping parameters (see SubjectUnionForOverlap). With no union (never, the default of ExpectItFunction and ExpectItFunctionAsync), there are no siblings to scan, so the subject is inferred from the first assertion part, as it was before the union existed. This keeps single-argument uses of those exported types working.

    Type Parameters

    • Parts extends AssertionParts

      Assertion parts whose first part may be the subject schema

    • AllAssertions extends AnyAssertion

      Full assertion union, or never if unavailable