mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
removed extra Model properties
This commit is contained in:
Vendored
-21
@@ -2059,27 +2059,6 @@ declare module "mongoose" {
|
||||
*/
|
||||
new(doc?: Object): T;
|
||||
|
||||
/** Base Mongoose instance the model uses. */
|
||||
base: typeof mongoose;
|
||||
|
||||
/** If this is a discriminator model, `baseModelName` is the name of the base model. */
|
||||
baseModelName: string;
|
||||
|
||||
/** Collection the model uses. */
|
||||
collection: Collection;
|
||||
|
||||
/** Connection the model uses. */
|
||||
db: Connection;
|
||||
|
||||
/** Registered discriminators for this model. */
|
||||
discriminators: any;
|
||||
|
||||
/** The name of the model. */
|
||||
modelName: string;
|
||||
|
||||
/** Schema the model uses. */
|
||||
schema: Schema;
|
||||
|
||||
/**
|
||||
* Finds a single document by its _id field. findById(id) is almost*
|
||||
* equivalent to findOne({ _id: id }). findById() triggers findOne hooks.
|
||||
|
||||
Reference in New Issue
Block a user