@@ -82,7 +82,7 @@ export class AuthenticationProviderTobikoCloud
8282 return err ( 'Failed to get tcloud auth status' )
8383 }
8484 const status = result . stdout
85- const statusToJson = JSON . parse ( status )
85+ const statusToJson : any = JSON . parse ( status )
8686 const statusResponse = statusResponseSchema . parse ( statusToJson )
8787 return ok ( statusResponse )
8888 }
@@ -188,7 +188,7 @@ export class AuthenticationProviderTobikoCloud
188188 }
189189
190190 try {
191- const resultToJson = JSON . parse ( result . stdout )
191+ const resultToJson : any = JSON . parse ( result . stdout )
192192 const urlCode = loginUrlResponseSchema . parse ( resultToJson )
193193 const url = urlCode . url
194194
@@ -197,7 +197,12 @@ export class AuthenticationProviderTobikoCloud
197197 }
198198
199199 const ac = new AbortController ( )
200- const timeout = setTimeout ( ( ) => ac . abort ( ) , 1000 * 60 * 5 )
200+ const timeout = setTimeout (
201+ ( ) => {
202+ ac . abort ( )
203+ } ,
204+ 1000 * 60 * 5 ,
205+ )
201206 const backgroundServerForLogin = execAsync (
202207 tcloudBinPath ,
203208 [ 'auth' , 'vscode' , 'start-server' , urlCode . verifier_code ] ,
@@ -279,11 +284,16 @@ export class AuthenticationProviderTobikoCloud
279284 }
280285
281286 try {
282- const resultToJson = JSON . parse ( result . stdout )
287+ const resultToJson : any = JSON . parse ( result . stdout )
283288 const deviceCodeResponse = deviceCodeResponseSchema . parse ( resultToJson )
284289
285290 const ac = new AbortController ( )
286- const timeout = setTimeout ( ( ) => ac . abort ( ) , 1000 * 60 * 5 )
291+ const timeout = setTimeout (
292+ ( ) => {
293+ ac . abort ( )
294+ } ,
295+ 1000 * 60 * 5 ,
296+ )
287297 const waiting = execAsync (
288298 tcloudBinPath ,
289299 [ 'auth' , 'vscode' , 'poll_device' , deviceCodeResponse . device_code ] ,
0 commit comments