Home > @imqueue/rpc > registerType

registerType() function

Flushes definitions collected on a class into the RPC type description. Invoked by class-level decorators once the class (and hence its name) is available.

Signature:

export declare function registerType(ctor: Function, metadata: DecoratorMetadata | undefined, indexType?: string): void;

Parameters

Parameter

Type

Description

ctor

Function

the decorated class constructor

metadata

DecoratorMetadata | undefined

shared decorator metadata

indexType

string

(Optional) optional index signature definition

Returns:

void