Saxonberg Server API
    Preparing search index...

    Type Alias GlobActionResult<T>

    GlobActionResult: { ok: true; payload: T } | { ok: false; reason: string }

    Action callback contract for GlobbableApi.applyQuantity.

    • ok: true → the action succeeded on this operand. payload rides on the helper's payloads list for controller post- processing (typically the {operand, applied count} pair used in prose).
    • ok: false → the action declined this candidate (e.g., destination full, cursed item, recipient refused). reason is an open enumeration carried into a target-declined note. The helper reglobs the operand back into the candidate (if a split occurred) and continues the walk.

    Action callbacks should NOT throw to signal soft failures — throws propagate and the helper does not clean up. See G5 in the plan; ok: false is the only soft-failure signal.

    Type Parameters

    • T