Skip to content

Commit

Permalink
refactor(NODE-4754): remove unused QueryOptions export (#3455)
Browse files Browse the repository at this point in the history
  • Loading branch information
andymina authored Oct 25, 2022
1 parent 1bf6ef1 commit d55022b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
19 changes: 1 addition & 18 deletions src/cmap/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
} from '../error';
import type { ServerApi, SupportedNodeConnectionOptions } from '../mongo_client';
import { CancellationToken, TypedEventEmitter } from '../mongo_types';
import type { ReadPreference, ReadPreferenceLike } from '../read_preference';
import type { ReadPreferenceLike } from '../read_preference';
import { applySession, ClientSession, updateSessionFromResponse } from '../sessions';
import {
calculateDurationInMs,
Expand Down Expand Up @@ -68,23 +68,6 @@ const kAutoEncrypter = Symbol('autoEncrypter');
/** @internal */
const kDelayedTimeoutId = Symbol('delayedTimeoutId');

/** @internal */
export interface QueryOptions extends BSONSerializeOptions {
readPreference: ReadPreference;
documentsReturnedIn?: string;
batchSize?: number;
limit?: number;
skip?: number;
projection?: Document;
tailable?: boolean;
awaitData?: boolean;
noCursorTimeout?: boolean;
/** @deprecated use `noCursorTimeout` instead */
timeout?: boolean;
partial?: boolean;
oplogReplay?: boolean;
}

/** @internal */
export interface CommandOptions extends BSONSerializeOptions {
command?: boolean;
Expand Down
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,7 @@ export type {
ConnectionOptions,
DestroyOptions,
GetMoreOptions,
ProxyOptions,
QueryOptions
ProxyOptions
} from './cmap/connection';
export type {
CloseOptions,
Expand Down

0 comments on commit d55022b

Please sign in to comment.