Skip to content

Commit 9fe1c2d

Browse files
committed
fix: lint
1 parent f9c1364 commit 9fe1c2d

File tree

4 files changed

+3
-12
lines changed

4 files changed

+3
-12
lines changed

src/collection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import {
3939
type EstimatedDocumentCountOptions
4040
} from './operations/estimated_document_count';
4141
import { executeOperation } from './operations/execute_operation';
42-
import { type FindOneOptions, type FindOptions } from './operations/find';
42+
import { type FindOptions } from './operations/find';
4343
import {
4444
FindOneAndDeleteOperation,
4545
type FindOneAndDeleteOptions,
@@ -48,7 +48,7 @@ import {
4848
FindOneAndUpdateOperation,
4949
type FindOneAndUpdateOptions
5050
} from './operations/find_and_modify';
51-
import { FindOneOperation } from './operations/find_one_operation';
51+
import { FindOneOperation, type FindOneOptions } from './operations/find_one';
5252
import {
5353
CreateIndexesOperation,
5454
type CreateIndexesOptions,

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ export type {
529529
FindOneAndReplaceOptions,
530530
FindOneAndUpdateOptions
531531
} from './operations/find_and_modify';
532+
export type { FindOneOptions } from './operations/find_one';
532533
export type { IndexInformationOptions } from './operations/indexes';
533534
export type {
534535
CreateIndexesOptions,

src/operations/find.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,6 @@ export interface FindOptions<TSchema extends Document = Document>
8181
timeoutMode?: CursorTimeoutMode;
8282
}
8383

84-
/** @public */
85-
export interface FindOneOptions extends FindOptions {
86-
/** @deprecated Will be removed in the next major version. User provided value will be ignored. */
87-
batchSize?: number;
88-
/** @deprecated Will be removed in the next major version. User provided value will be ignored. */
89-
limit?: number;
90-
/** @deprecated Will be removed in the next major version. User provided value will be ignored. */
91-
noCursorTimeout?: boolean;
92-
}
93-
9484
/** @internal */
9585
export class FindOperation extends CommandOperation<CursorResponse> {
9686
/**
File renamed without changes.

0 commit comments

Comments
 (0)