Interface Encoder<Req, Res, EncodedType>

Interface for defining methods for encoding values to a given type. See also Decoder

Type Parameters

  • Req

    Request type that needs encoding

  • Res

    Response type that needs encoding

  • EncodedType

Hierarchy

  • Encoder

Properties

Properties

req: ((req: Req) => EncodedType)

Type declaration

    • (req: Req): EncodedType
    • Parameters

      • req: Req

      Returns EncodedType

res: ((res: Res) => EncodedType)

Type declaration

    • (res: Res): EncodedType
    • Parameters

      • res: Res

      Returns EncodedType

Generated using TypeDoc