Library API
    Preparing search index...

    Function registerType

    • Registers a class constructor with the runtime type system.

      Parameters

      • cls: Constructor

        The class constructor to register

      • Optionaltype: Type

        Optional explicit type name to register the class under

      Returns void

      Custom types must augment TypeValueMap to be strictly recognized by the TypeScript compiler.

      registerType(MyCustomClass, 'MyCustomType');