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 extends MappingEntry = MappingEntry> {
    new Constructor(): M;
    decodeFrom: (decoder: Decoder) => M;
}

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

Constructors

Properties

decodeFrom: (decoder: Decoder) => M