This repository was archived by the owner on Feb 20, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 109
docs: Add parameters to remaining commit overloads
#1441
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -131,11 +131,7 @@ class Transaction extends DatastoreRequest { | |
| * transaction. | ||
| * | ||
| * @param {CallOptions | https://googleapis.github.io/gax-nodejs/global.html#CallOptions} [gaxOptions] Request configuration options. | ||
| * @param {function} callback The callback function. | ||
| * @param {?error} callback.err An error returned while making this request. | ||
| * If the commit fails, we automatically try to rollback the transaction | ||
| * (see {module:datastore/transaction#rollback}). | ||
| * @param {object} callback.apiResponse The full API response. | ||
| * @returns {Promise<CommitResponse>} The full API response. | ||
| * | ||
| * @example | ||
| * ``` | ||
|
|
@@ -159,16 +155,26 @@ class Transaction extends DatastoreRequest { | |
| */ | ||
| commit(gaxOptions?: CallOptions): Promise<CommitResponse>; | ||
| /** | ||
| * @param {object} [gaxOptions] Request configuration options, outlined here: | ||
| * https://googleapis.github.io/gax-nodejs/global.html#CallOptions. | ||
| * @param {object} [gaxOptions] Request configuration options. | ||
| * See {@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions CallOptions Docs}. | ||
| * @param {function} callback The callback function. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this |
||
| * @param {?error} callback.err An error returned while making this request. | ||
| * If the commit fails, we automatically try to rollback the transaction | ||
| * (see {module:datastore/transaction#rollback}). | ||
| * @param {object} callback.apiResponse The full API response. | ||
| */ | ||
| commit(callback: CommitCallback): void; | ||
| /** | ||
| * @param {CallOptions} [gaxOptions] Request configuration options. | ||
| * See {@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions CallOptions Docs}. | ||
| * @param {CommitCallback} callback The callback function. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: |
||
| */ | ||
| commit(gaxOptions: CallOptions, callback: CommitCallback): void; | ||
| /** | ||
| * @param {CallOptions} [gaxOptionsOrCallback] Request configuration options. | ||
| * See {@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions CallOptions Docs}. | ||
| * @param cb The callback function. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: We should probably add |
||
| */ | ||
| commit( | ||
| gaxOptionsOrCallback?: CallOptions | CommitCallback, | ||
| cb?: CommitCallback, | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the
* @param {object} [gaxOptions]parameter can be eliminated entirely because its not in the followingcommit(callback: CommitCallback)signature?