Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MatchHandlers<Value, SomeReturn, NoneReturn>

Type parameters

  • Value

  • SomeReturn

  • NoneReturn

Hierarchy

  • MatchHandlers

Index

Properties

Properties

Readonly none

none: () => NoneReturn

Function to handle when the option does not contain a value

returns

Response for None case

Type declaration

    • (): NoneReturn
    • Returns NoneReturn

Readonly some

some: (value: Value) => SomeReturn

Function to handle when the option contains a value

param

Contained value

returns

Response for Some case

Type declaration

    • (value: Value): SomeReturn
    • Parameters

      • value: Value

      Returns SomeReturn

Generated using TypeDoc