Wraps a status result object with is{Status} boolean helpers.
is{Status}
All known status values must be passed so that each boolean is explicitly set to true or false (not just the current one).
true
false
const STATUSES = ['success', 'cancelled', 'failed'] as constreturn withStatusBooleans(data, STATUSES)// result.isSuccess, result.isCancelled, result.isFailed Copy
const STATUSES = ['success', 'cancelled', 'failed'] as constreturn withStatusBooleans(data, STATUSES)// result.isSuccess, result.isCancelled, result.isFailed
Wraps a status result object with
is{Status}boolean helpers.All known status values must be passed so that each boolean is explicitly set to
trueorfalse(not just the current one).