BUPKIS
    Preparing search index...

    Type Alias LeadingPhraseFromParts<Parts>

    LeadingPhraseFromParts: Parts extends readonly [infer First, ...(infer Rest)]
        ? First extends readonly string[]
        | string
            ? PhrasePartToLiteral<First>
            : Rest extends readonly [infer Second, ...unknown[]]
                ? PhrasePartToLiteral<Second>
                : never
        : never

    Extracts the phrase literal(s) that may occupy the leading phrase position of an assertion — the first argument immediately after the subject in an expect()/expectAsync() call.

    The leading phrase is Parts[0] for phrase-first assertions (both single literals and choices) and Parts[1] for subject-first assertions, where Parts[0] is the subject schema. The readonly string[] branch is what lets const-captured choice tuples be recognized as phrases (they are not assignable to the mutable PhraseLiteralChoice). Non-phrase parts resolve to never.

    Type Parameters

    • Parts extends readonly unknown[]

      The assertion parts to inspect