diff --git a/src/helpers.ts b/src/helpers.ts index 517bfc1..e99c87e 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -52,9 +52,9 @@ interface Failure { error: Error } type Outcome = Success | Failure -const Abnormal = (result: unknown): result is Failure => - (result as { error?: Error }).error !== undefined -const Ok = (result: unknown): result is Success => !Abnormal(result) +const Abnormal = (outcome: unknown): outcome is Failure => + (outcome as { error?: Error }).error !== undefined +const Ok = (outcome: unknown): outcome is Success => !Abnormal(outcome) export { Abnormal,