Skip to content

Commit c617294

Browse files
authored
refactor(NODE-7148): make rawData internal (#4655)
1 parent b813c85 commit c617294

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/operations/command.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ export interface CommandOperationOptions
6767

6868
/**
6969
* Used when the command needs to grant access to the underlying namespaces for time series collections.
70-
* Only available on server versions 8.2 and above.
71-
* @public
70+
* Only available on server versions 8.2 and above and is not meant for public use.
71+
* @internal
7272
* @sinceServerVersion 8.2
7373
**/
7474
rawData?: boolean;

src/operations/indexes.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,8 @@ export class DropIndexOperation extends CommandOperation<Document> {
356356
export type ListIndexesOptions = AbstractCursorOptions & {
357357
/** @internal */
358358
omitMaxTimeMS?: boolean;
359+
/** @internal */
360+
rawData?: boolean;
359361
};
360362

361363
/** @internal */
@@ -368,7 +370,7 @@ export class ListIndexesOperation extends CommandOperation<CursorResponse> {
368370
* This allows typescript to delete the key but will
369371
* not allow a writeConcern to be assigned as a property on options.
370372
*/
371-
override options: ListIndexesOptions & { writeConcern?: never; rawData?: boolean };
373+
override options: ListIndexesOptions & { writeConcern?: never };
372374
collectionNamespace: MongoDBNamespace;
373375

374376
constructor(collection: Collection, options?: ListIndexesOptions) {

0 commit comments

Comments
 (0)