Assert that a Result is successful and return the value
const result = await useCase.execute(command);const value = unwrapSuccess(result); Copy
const result = await useCase.execute(command);const value = unwrapSuccess(result);
Assert that a Result is successful and return the value