bupkis
    Preparing search index...

    Interface ParsedResultSuccess<Parts>

    Interface representing a successful argument parsing attempt.

    When assertion arguments successfully match the expected slots, this interface contains the validated arguments and metadata about the match quality. The assertion can be executed using the parsedValues.

    interface ParsedResultSuccess<Parts extends AssertionParts> {
        exactMatch: boolean;
        parsedValues: ParsedValues<Parts>;
        subjectValidationResult?:
            | { data: any; success: true }
            | { error: z.ZodError; success: false };
        success: true;
    }

    Type Parameters

    • Parts extends AssertionParts

      The assertion parts tuple defining the expected structure

    Hierarchy (View Summary)

    Index

    Properties

    exactMatch: boolean

    If success is true, then this will be true if all args matched the slots and none of those args infer as unknown or any.

    parsedValues: ParsedValues<Parts>

    Present only if success is true. The parsed values mapped to the slots of an Assertion.

    subjectValidationResult?:
        | { data: any; success: true }
        | { error: z.ZodError; success: false }

    Optional cached subject validation result for optimized schema assertions. When present, indicates that subject validation was already performed during parseValues() and doesn't need to be repeated in execute().

    success: true

    Whether the args were successfully parsed against the slots of an Assertion.