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} Copy
const result = await store.putIfMatch('col', 'x', data, version);if (isPutIfMatchConflict(result)) { // result.currentVersion is number | null here}
Type guard for the conflict arm of PutIfMatchResult. Useful for narrowing in hand-rolled retry loops.