bupkis
    Preparing search index...

    Type Alias AssertionPartsToSlots<Parts>

    AssertionPartsToSlots: Parts extends readonly [
        infer First extends AssertionPart,
        ...(infer Rest extends readonly AssertionPart[]),
    ]
        ? readonly [AssertionSlot<First>, ...AssertionPartsToSlots<Rest>]
        : readonly []

    Type-level mapping from assertion parts to their corresponding validation slots.

    This recursive type processes each assertion part and converts it to a slot that can be used for runtime validation. Phrase literals become branded string schemas, while Zod types are preserved as-is. The resulting tuple may contain never entries for invalid parts that should be filtered out.

    Type Parameters

    • Parts extends readonly AssertionPart[]

      The readonly array of assertion parts to process

    // Input parts
    type Parts = ['to be a string', z.number()];

    // Resulting slots (simplified)
    type Slots = [PhraseLiteralSlot<'to be a string'>, z.ZodNumber];