@@ -33,6 +33,7 @@ import {
3333 LEADER_AWARE_ROUTING_HEADER ,
3434} from '../src/common' ;
3535import { ExecuteSqlRequest } from '../src/transaction' ;
36+ import { CallOptions } from 'google-gax' ;
3637
3738let promisified = false ;
3839const fakePfy = extend ( { } , pfy , {
@@ -160,9 +161,9 @@ describe('BatchTransaction', () => {
160161 } ,
161162 } ;
162163
163- const QUERY = {
164+ const QUERY : ExecuteSqlRequest = {
164165 sql : 'SELECT * FROM Singers' ,
165- gaxOptions : GAX_OPTS ,
166+ gaxOptions : GAX_OPTS as CallOptions ,
166167 params : { } ,
167168 types : { } ,
168169 dataBoostEnabled : true ,
@@ -184,10 +185,7 @@ describe('BatchTransaction', () => {
184185 . withArgs ( QUERY )
185186 . returns ( fakeParams ) ;
186187
187- batchTransaction . createQueryPartitions (
188- QUERY as ExecuteSqlRequest ,
189- assert . ifError ,
190- ) ;
188+ batchTransaction . createQueryPartitions ( QUERY , assert . ifError ) ;
191189
192190 const { client, method, reqOpts, gaxOpts, headers} = stub . lastCall . args [ 0 ] ;
193191 assert . strictEqual ( client , 'SpannerClient' ) ;
@@ -234,7 +232,7 @@ describe('BatchTransaction', () => {
234232 . withArgs ( QUERY )
235233 . returns ( fakeParams ) ;
236234
237- await batchTransaction . createQueryPartitions ( QUERY as ExecuteSqlRequest ) ;
235+ await batchTransaction . createQueryPartitions ( QUERY ) ;
238236
239237 const { client, method, reqOpts, gaxOpts, headers} = stub . lastCall . args [ 0 ] ;
240238 assert . strictEqual ( client , 'SpannerClient' ) ;
0 commit comments