Interface Constructor<M>

An object that knows how to decode itself from TLV.

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?: Name): M;
    decodeFrom: ((decoder: Decoder) => M);
}

Type Parameters

Hierarchy (view full)

Constructors

Properties

Constructors

Properties

decodeFrom: ((decoder: Decoder) => M)