You can do: if ('error' in result) { console.error(result.error); // ok: result inferred as 'Failure' } else { doThings(result.value) // ok: result inferred as 'Success<T>' } Even though you used string there, it's…
I wonder what's the common approach that people use to test AWS-coupled features locally without LocalStack (or test features not supported by LS). Do you have a dedicated AWS environment for this use case, or we're not…
You can do: if ('error' in result) { console.error(result.error); // ok: result inferred as 'Failure' } else { doThings(result.value) // ok: result inferred as 'Success<T>' } Even though you used string there, it's…
I wonder what's the common approach that people use to test AWS-coupled features locally without LocalStack (or test features not supported by LS). Do you have a dedicated AWS environment for this use case, or we're not…