File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,10 @@ declare class LegacyCollection<TSchema extends Document = Document> extends Coll
263263 * @param options - Optional settings for the command
264264 * @param callback - An optional callback, a Promise will be returned if none is provided
265265 */
266- insertOne ( doc : OptionalUnlessRequiredId < TSchema > , options ?: InsertOneOptions ) : Promise < InsertOneResult < TSchema > > ;
266+ insertOne ( doc : OptionalUnlessRequiredId < TSchema > ) : Promise < InsertOneResult < TSchema > > ;
267+ insertOne ( doc : OptionalUnlessRequiredId < TSchema > , callback : Callback < InsertOneResult < TSchema > > ) : void ;
268+ insertOne ( doc : OptionalUnlessRequiredId < TSchema > , options : InsertOneOptions ) : Promise < InsertOneResult < TSchema > > ;
269+ insertOne ( doc : OptionalUnlessRequiredId < TSchema > , options : InsertOneOptions , callback : Callback < InsertOneResult < TSchema > > ) : void ;
267270 /**
268271 * Inserts an array of documents into MongoDB. If documents passed in do not contain the **_id** field,
269272 * one will be added to each of the documents missing it by the driver, mutating the document. This behavior
You can’t perform that action at this time.
0 commit comments