Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IResult<T, ErrObj>

An interface to handle the results in a unified manner, regardless of whether they are successful or not.

Type Parameters

  • T

  • ErrObj

Hierarchy

  • IResult

Implemented by

Index

Methods

  • isErr(): this is Err<T, ErrObj>
  • isOk(): this is Ok<T, ErrObj>
  • match(__namedParameters: { Err: any; Finally?: any; Ok: any }): void
  • name(): string
  • unwrap(catchFn: ((err: RnError<ErrObj>) => void)): void | T
  • unwrapForce(): T

Generated using TypeDoc