Type alias DiscriminatorModel<M, T>

DiscriminatorModel<M, T>: T extends mongoose.Model<infer T, infer TQueryHelpers, infer TInstanceMethods, infer TVirtuals>
    ? M extends mongoose.Model<infer M, infer MQueryHelpers, infer MInstanceMethods, infer MVirtuals>
        ? mongoose.Model<Omit<M, keyof T> & T, MQueryHelpers | TQueryHelpers, MInstanceMethods | TInstanceMethods, MVirtuals | TVirtuals>
        : M
    : M

Type Parameters

  • M

  • T

Generated using TypeDoc