• Type Parameters

    • M extends Model<any, any> = Model<any, any>

    Parameters

    • registry: Registry
    • managerName: string
    • Optional modelName: string

      Model name

    Returns ModelStatic<M>

  • Type Parameters

    • M extends ModelStatic<Model<any, any>> = ModelStatic<Model<any, any>>

    Parameters

    • registry: Registry
    • managerName: string
    • Optional modelName: string

    Returns M

  • Type Parameters

    • TModelAttributes extends Record<string, unknown> = {}
    • TCreationAttributes extends Record<string, unknown> = {}

    Parameters

    • registry: Registry
    • managerName: string
    • Optional modelName: string

    Returns ModelStatic<Model<TModelAttributes, TCreationAttributes>>