Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Throwable<A>

Type parameters

  • A

Hierarchy

Index

Methods

  • ThrowableToList(): A[]
  • _open(): unknown
  • case<B>(f: (a: A) => B, n: (e: Error) => B): any
  • Type parameters

    • B

    Parameters

    • f: (a: A) => B
        • (a: A): B
        • Parameters

          • a: A

          Returns B

    • n: (e: Error) => B
        • (e: Error): B
        • Parameters

          • e: Error

          Returns B

    Returns any

  • fromResolved(): A
  • fromThrowable(d: A): A
  • fromThrown(): Error
  • identity<T>(): T
  • isResolved(): boolean
  • isThrown(): boolean
  • isValide(): boolean
  • case<A, B>(a: Throwable<A>, f: (a: A) => B, n: (e: Error) => B): B
  • Type parameters

    • A

    • B

    Parameters

    • a: Throwable<A>
    • f: (a: A) => B
        • (a: A): B
        • Parameters

          • a: A

          Returns B

    • n: (e: Error) => B
        • (e: Error): B
        • Parameters

          • e: Error

          Returns B

    Returns B

  • liftFromThrowable<A, Args>(f: (...a: Args) => A): (...a: Args) => Throwable<A>
  • Type parameters

    • A

    • Args: unknown[]

    Parameters

    • f: (...a: Args) => A
        • (...a: Args): A
        • Parameters

          • Rest ...a: Args

          Returns A

    Returns (...a: Args) => Throwable<A>

  • liftFromThrowableAsync<A, Args>(f: (...a: Args) => Promise<A>): (...a: Args) => Promise<Throwable<A>>
  • Type parameters

    • A

    • Args: unknown[]

    Parameters

    • f: (...a: Args) => Promise<A>
        • (...a: Args): Promise<A>
        • Parameters

          • Rest ...a: Args

          Returns Promise<A>

    Returns (...a: Args) => Promise<Throwable<A>>

  • mapThrowable<A, B>(f: (a: A) => Throwable<B>, a: A[]): B[]

Generated using TypeDoc