- codec<Encodable, TypeLike, Decoded, Type, ConstructorType>(codec): ((Constructor: ConstructorType) => {
prototype: __type<any, any, any, any, any>;
from(decoded: TypeLike): Type;
byteLength: undefined | number;
encode(encodable: TypeLike): Uint8Array;
decode(bytesLike: BytesLike): Type;
fromBytes(bytes: BytesLike): Type;
new (...args: any[]): __type<Encodable, TypeLike, Decoded, Type, ConstructorType>;
} & ConstructorType)
A class decorator to add methods implementation on the Entity.Base class