Skip to content
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

refactor(codec): improve typescript defs #490

Merged
merged 13 commits into from
Jan 8, 2019
8 changes: 2 additions & 6 deletions src/batch-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ class BatchTransaction extends Transaction {
}
const reqOpts = codec.encodeQuery(query);
const gaxOpts = query.gaxOptions;
if (gaxOpts) {

This comment was marked as spam.

This comment was marked as spam.

delete reqOpts.gaxOptions;
}

this.createPartitions_(
{
client: 'SpannerClient',
Expand Down Expand Up @@ -194,9 +192,7 @@ class BatchTransaction extends Transaction {
createReadPartitions(options, callback) {
const reqOpts = codec.encodeRead(options);
const gaxOpts = options.gaxOptions;
if (gaxOpts) {
delete reqOpts.gaxOptions;
}

this.createPartitions_(
{
client: 'SpannerClient',
Expand Down
Loading