Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "mapper"

Index

Functions

Functions

Const map

  • map<A, B>(fn: Handler<A, B>): (Anonymous function)
  • Uses a handler to map another handler's request type from one type to another. See route for example usage.

    Type parameters

    • A

      The source request type.

    • B

      The destination request type.

    Parameters

    • fn: Handler<A, B>

      Handler that implements the mapping from the request type A to request type B.

    Returns (Anonymous function)

Generated using TypeDoc