Skip to content

Commit 314dc7d

Browse files
committed
chore(NODE-6865): deprecate transaction getters
1 parent 83534ff commit 314dc7d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/transactions.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,26 +122,33 @@ export class Transaction {
122122
return this._pinnedServer;
123123
}
124124

125+
/** @internal */
125126
get recoveryToken(): Document | undefined {
126127
return this._recoveryToken;
127128
}
128129

130+
/** @internal */
129131
get isPinned(): boolean {
130132
return !!this.server;
131133
}
132134

133-
/** @returns Whether the transaction has started */
135+
/**
136+
* @internal
137+
* @returns Whether the transaction has started
138+
*/
134139
get isStarting(): boolean {
135140
return this.state === TxnState.STARTING_TRANSACTION;
136141
}
137142

138143
/**
144+
* @internal
139145
* @returns Whether this session is presently in a transaction
140146
*/
141147
get isActive(): boolean {
142148
return ACTIVE_STATES.has(this.state);
143149
}
144150

151+
/** @internal */
145152
get isCommitted(): boolean {
146153
return COMMITTED_STATES.has(this.state);
147154
}

0 commit comments

Comments
 (0)