Interface Constructor<M>

An object that knows how to decode itself from TLV.

Remarks

Most commonly, decodeFrom is added as a static method of type R, so that the constructor of R implements this interface.

interface Constructor<M> {
    new Constructornew (name?): M;
    decodeFrom: ((decoder) => M);
}

Type Parameters

Hierarchy (view full)

Constructors

Properties

Constructors

Properties

decodeFrom: ((decoder) => M)

Type declaration

    • (decoder): M
    • Parameters

      Returns M