Skip to content

Commit

Permalink
fix: make the owner property of ClientSessionOptions optional (#2656)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst authored Dec 4, 2020
1 parent 698533f commit d811a01
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ export interface ClientSessionOptions {
/** The default TransactionOptions to use for transactions started on this session. */
defaultTransactionOptions?: TransactionOptions;

owner: symbol | AbstractCursor;
/** @internal */
owner?: symbol | AbstractCursor;
/** @internal */
explicit?: boolean;
/** @internal */
initialClusterTime?: ClusterTime;
}

Expand All @@ -71,7 +74,7 @@ class ClientSession extends EventEmitter {
clusterTime?: ClusterTime;
operationTime?: Timestamp;
explicit: boolean;
owner: symbol | AbstractCursor;
owner?: symbol | AbstractCursor;
defaultTransactionOptions: TransactionOptions;
transaction: Transaction;
[kServerSession]?: ServerSession;
Expand Down

0 comments on commit d811a01

Please sign in to comment.