Skip to content

Commit d811a01

Browse files
authored
fix: make the owner property of ClientSessionOptions optional (#2656)
NODE-2918
1 parent 698533f commit d811a01

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/sessions.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@ export interface ClientSessionOptions {
4545
/** The default TransactionOptions to use for transactions started on this session. */
4646
defaultTransactionOptions?: TransactionOptions;
4747

48-
owner: symbol | AbstractCursor;
48+
/** @internal */
49+
owner?: symbol | AbstractCursor;
50+
/** @internal */
4951
explicit?: boolean;
52+
/** @internal */
5053
initialClusterTime?: ClusterTime;
5154
}
5255

@@ -71,7 +74,7 @@ class ClientSession extends EventEmitter {
7174
clusterTime?: ClusterTime;
7275
operationTime?: Timestamp;
7376
explicit: boolean;
74-
owner: symbol | AbstractCursor;
77+
owner?: symbol | AbstractCursor;
7578
defaultTransactionOptions: TransactionOptions;
7679
transaction: Transaction;
7780
[kServerSession]?: ServerSession;

0 commit comments

Comments
 (0)