-
Notifications
You must be signed in to change notification settings - Fork 110
docs: Add parameters to remaining commit overloads
#1441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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, | ||
|
|
||
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?