mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
isDeleted func name (#35282)
This commit is contained in:
committed by
Nathan Shively-Sanders
parent
10c7136095
commit
2c7b9c4735
Vendored
+2
-2
@@ -3230,9 +3230,9 @@ declare module "mongoose" {
|
||||
model<T extends Document>(name: string): Model<T>;
|
||||
|
||||
/** Override whether mongoose thinks this doc is deleted or not */
|
||||
isDeleted(isDeleted: boolean): void;
|
||||
$isDeleted(isDeleted: boolean): void;
|
||||
/** whether mongoose thinks this doc is deleted. */
|
||||
isDeleted(): boolean;
|
||||
$isDeleted(): boolean;
|
||||
|
||||
/**
|
||||
* Removes this document from the db.
|
||||
|
||||
@@ -2017,8 +2017,8 @@ const addFieldsAgg: mongoose.Aggregate<any> = aggregatePrototypeGraphLookup.addF
|
||||
|
||||
MyModel.findById('foo').then((doc: mongoose.Document) => {
|
||||
const a: boolean = doc.isDirectSelected('bar');
|
||||
const b: boolean = doc.isDeleted();
|
||||
doc.isDeleted(true);
|
||||
const b: boolean = doc.$isDeleted();
|
||||
doc.$isDeleted(true);
|
||||
});
|
||||
|
||||
MyModel.translateAliases({});
|
||||
|
||||
Reference in New Issue
Block a user