'Merge' two statuses. If either value passed is 'error', it will return 'error'. Else it will return 'success'.
_mergeStatus(
left: "success" | "error",
right: "success" | "error"
): "success" | "error" | undefined| Name | Type | Description |
|---|---|---|
left | "success" | "error" | The existing value to 'merge' with the new value. |
right | "success" | "error" | The new value to 'merge' with the existing value |