BUPKIS
    Preparing search index...

    Interface AssertionSync<Parts, Impl, Slots>

    A synchronous assertion of no specific implementation type.

    interface AssertionSync<
        Parts extends AssertionParts = AssertionParts,
        Impl extends AssertionImplSync<Parts> = AssertionImplSync<Parts>,
        Slots extends AssertionSlots<Parts> = AssertionSlots<Parts>,
    > {
        id: string;
        impl: Impl;
        parts: Parts;
        slots: Slots;
        execute(
            parsedValues: ParsedValues<Parts>,
            args: unknown[],
            stackStartFn: (...args: any[]) => any,
            parseResult?: ParsedResult<Parts>,
        ): void;
        getIndexPhrases(): readonly string[];
        parseValues<Args extends readonly unknown[]>(
            args: Args,
        ): ParsedResult<Parts>;
        toString(): string;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Methods

    • Execute the assertion implementation synchronously.

      Parameters

      • parsedValues: ParsedValues<Parts>

        Parameters for the assertion implementation

      • args: unknown[]

        Raw parameters passed to expectSync()

      • stackStartFn: (...args: any[]) => any

        Function to use as stack start for error reporting

      • OptionalparseResult: ParsedResult<Parts>

        Optional parse result containing cached validation data

      Returns void

    • Extracts phrase literals from this assertion for use in dispatch indexing.

      Returns phrases from the first phrase literal slot found (typically slot 1 for subject-first assertions, or slot 0 for phrase-first assertions). Handles both single phrase literals and phrase literal choices.

      Returns readonly string[]

      Array of phrase strings for indexing, or empty array if none found

    Properties

    id: string

    Unique identifier for this assertion

    impl: Impl

    The implementation function or schema for this assertion.

    parts: Parts

    The assertion parts used to create this assertion.

    Available at runtime for introspection.

    slots: Slots

    The slots derived from assertion parts for validation.