Interface Decoder<Req, Res, EncodedType>

Interface for defining methods for decoding values from a given type. See also Encoder

Type Parameters

  • Req

    Request type that needs encoding

  • Res

    Response type that needs encoding

  • EncodedType

Hierarchy

  • Decoder

Properties

Properties

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

Type declaration

    • (data: EncodedType): Req
    • Parameters

      • data: EncodedType

      Returns Req

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

Type declaration

    • (data: EncodedType): Res
    • Parameters

      • data: EncodedType

      Returns Res

Generated using TypeDoc