Function modelClass

  • Tricks TypeScript into accepting a particular kind of generic class as a parameter for ExtendedModel. Does nothing in runtime.

    Type Parameters

    Parameters

    • type: {
          prototype: T;
      }

      Generic model class.

      • prototype: T

    Returns ModelClass<T>

    T Generic model class type.