Skip to content

Commit b95b5c1

Browse files
committed
rename option
1 parent 482f816 commit b95b5c1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/cursor/run_command_cursor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Callback, ns } from '../utils';
1111
import { AbstractCursor } from './abstract_cursor';
1212

1313
/** @public */
14-
export type RunCommandCursorOptions = {
14+
export type RunCursorCommandOptions = {
1515
readPreference?: ReadPreferenceLike;
1616
session?: ClientSession;
1717
} & BSONSerializeOptions;
@@ -95,7 +95,7 @@ export class RunCommandCursor extends AbstractCursor {
9595
private db: Db;
9696

9797
/** @internal */
98-
constructor(db: Db, command: Document, options: RunCommandCursorOptions = {}) {
98+
constructor(db: Db, command: Document, options: RunCursorCommandOptions = {}) {
9999
super(db.s.client, ns(db.namespace), options);
100100
this.db = db;
101101
this.command = Object.freeze({ ...command });

src/db.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Collection, CollectionOptions } from './collection';
55
import * as CONSTANTS from './constants';
66
import { AggregationCursor } from './cursor/aggregation_cursor';
77
import { ListCollectionsCursor } from './cursor/list_collections_cursor';
8-
import { RunCommandCursor, type RunCommandCursorOptions } from './cursor/run_command_cursor';
8+
import { RunCommandCursor, type RunCursorCommandOptions } from './cursor/run_command_cursor';
99
import { MongoAPIError, MongoInvalidArgumentError } from './error';
1010
import type { MongoClient, PkFactory } from './mongo_client';
1111
import type { TODO_NODE_3286 } from './mongo_types';
@@ -534,7 +534,7 @@ export class Db {
534534
* @param command - The command that will start a cursor on the server.
535535
* @param options - Configurations for running the command, bson options will apply to getMores
536536
*/
537-
runCursorCommand(command: Document, options?: RunCommandCursorOptions): RunCommandCursor {
537+
runCursorCommand(command: Document, options?: RunCursorCommandOptions): RunCommandCursor {
538538
return new RunCommandCursor(this, command, options);
539539
}
540540
}

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export type {
277277
ChangeStreamAggregateRawResult,
278278
ChangeStreamCursorOptions
279279
} from './cursor/change_stream_cursor';
280-
export type { RunCommandCursorOptions } from './cursor/run_command_cursor';
280+
export type { RunCursorCommandOptions } from './cursor/run_command_cursor';
281281
export type { DbOptions, DbPrivate } from './db';
282282
export type { AutoEncrypter, AutoEncryptionOptions, AutoEncryptionTlsOptions } from './deps';
283283
export type { Encrypter, EncrypterOptions } from './encrypter';

0 commit comments

Comments
 (0)