Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MatchHandlers<Payload, Error, OkReturn, ErrReturn>

Type parameters

  • Payload

  • Error

  • OkReturn

  • ErrReturn

Hierarchy

  • MatchHandlers

Index

Properties

Properties

Readonly err

err: (error: Error) => ErrReturn

Function to handle when the result carries an error

param

Carried error

returns

Response for Err case

Type declaration

    • (error: Error): ErrReturn
    • Parameters

      • error: Error

      Returns ErrReturn

Readonly ok

ok: (payload: Payload) => OkReturn

Function to handle when the result carries a payload

param

Carried payload

returns

Response for Ok case

Type declaration

    • (payload: Payload): OkReturn
    • Parameters

      • payload: Payload

      Returns OkReturn

Generated using TypeDoc