@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Function isPutIfMatchConflict

    • Type guard for the conflict arm of PutIfMatchResult. Useful for narrowing in hand-rolled retry loops.

      const result = await store.putIfMatch('col', 'x', data, version);
      if (isPutIfMatchConflict(result)) {
      // result.currentVersion is number | null here
      }

      Parameters

      Returns result is { ok: false; currentVersion: number | null }