Skip to content

Commit

Permalink
refactor(codec): improve typescript defs (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
callmehiphop authored Jan 8, 2019
1 parent 5b9a0b7 commit 79f7855
Show file tree
Hide file tree
Showing 12 changed files with 870 additions and 1,094 deletions.
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) {
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

0 comments on commit 79f7855

Please sign in to comment.