Skip to content

Commit badffc2

Browse files
authored
docs: Add parameters to second commit overload (#1343)
* Add parameters to second commit overload * docs: Add parameters to second commit overload
1 parent 01bfb84 commit badffc2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/transaction.ts

+9
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,15 @@ class Transaction extends DatastoreRequest {
159159
* ```
160160
*/
161161
commit(gaxOptions?: CallOptions): Promise<CommitResponse>;
162+
/**
163+
* @param {object} [gaxOptions] Request configuration options, outlined here:
164+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions.
165+
* @param {function} callback The callback function.
166+
* @param {?error} callback.err An error returned while making this request.
167+
* If the commit fails, we automatically try to rollback the transaction
168+
* (see {module:datastore/transaction#rollback}).
169+
* @param {object} callback.apiResponse The full API response.
170+
*/
162171
commit(callback: CommitCallback): void;
163172
commit(gaxOptions: CallOptions, callback: CommitCallback): void;
164173
commit(

0 commit comments

Comments
 (0)