Skip to content

Commit 8746505

Browse files
committed
Fix function definition in JSDoc
1 parent d704938 commit 8746505

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v1/session.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class Session {
137137
* delay of 1 second and maximum retry time of 30 seconds. Maximum retry time is configurable via driver config's
138138
* <code>maxTransactionRetryTime</code> property in milliseconds.
139139
*
140-
* @param {function(Transaction)} transactionWork - callback that executes operations against
140+
* @param {function(tx: Transaction): Promise} transactionWork - callback that executes operations against
141141
* a given {@link Transaction}.
142142
* @return {Promise} resolved promise as returned by the given function or rejected promise when given
143143
* function or commit fails.
@@ -154,7 +154,7 @@ class Session {
154154
* delay of 1 second and maximum retry time of 30 seconds. Maximum retry time is configurable via driver config's
155155
* <code>maxTransactionRetryTime</code> property in milliseconds.
156156
*
157-
* @param {function(Transaction)} transactionWork - callback that executes operations against
157+
* @param {function(tx: Transaction): Promise} transactionWork - callback that executes operations against
158158
* a given {@link Transaction}.
159159
* @return {Promise} resolved promise as returned by the given function or rejected promise when given
160160
* function or commit fails.

0 commit comments

Comments
 (0)