Skip to content

Commit

Permalink
fix: have InsertOneOptions extend CommandOperationOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
j committed May 24, 2021
1 parent 0b636ba commit 4e0a48f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/operations/insert.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { MongoError } from '../error';
import { defineAspects, Aspect, AbstractOperation } from './operation';
import { CommandOperation } from './command';
import { CommandOperation, CommandOperationOptions } from './command';
import { prepareDocs } from './common_functions';
import type { Callback, MongoDBNamespace } from '../utils';
import type { Server } from '../sdam/server';
Expand Down Expand Up @@ -46,7 +46,7 @@ export class InsertOperation extends CommandOperation<Document> {
}

/** @public */
export interface InsertOneOptions extends BSONSerializeOptions, WriteConcernOptions {
export interface InsertOneOptions extends CommandOperationOptions {
/** Allow driver to bypass schema validation in MongoDB 3.2 or higher. */
bypassDocumentValidation?: boolean;
/** Force server to assign _id values instead of driver. */
Expand Down

0 comments on commit 4e0a48f

Please sign in to comment.