@@ -65,12 +65,11 @@ export async function createFlow(
6565 const trpcClient = createTrpcClient ( context ) ;
6666
6767 let org ;
68- const orgs : Array < {
68+ const orgs = await trpcClient . query ( "orgs.list" ) as Array < {
6969 name : string ;
7070 slug : string ;
7171 id : string ;
72- // deno-lint-ignore no-explicit-any
73- } > = await ( trpcClient . orgs as any ) . list . query ( ) ;
72+ } > ;
7473
7574 if ( orgs . length === 1 ) {
7675 org = orgs [ 0 ] . slug ;
@@ -451,11 +450,10 @@ async function github(
451450 context : GlobalContext ,
452451 trpcClient : TRPCClient ,
453452) {
454- const owners : Array < {
453+ const owners = await trpcClient . query ( "github.listOrgsForUser" ) as Array < {
455454 id : number ;
456455 login : string ;
457- // deno-lint-ignore no-explicit-any
458- } > = await ( trpcClient . github as any ) . listOrgsForUser . query ( ) ;
456+ } > ;
459457
460458 const selectedOwner = promptSelect (
461459 "Select a github owner:" ,
@@ -470,13 +468,15 @@ async function github(
470468 }
471469 logTitle ( TITLES . githubOwner , selectedOwner . value . login ) ;
472470
473- const repos : Array < {
471+ const repos = await trpcClient . query (
472+ "github.listReposInInstallationForUser" ,
473+ {
474+ installation_id : selectedOwner . value . id ,
475+ } ,
476+ ) as Array < {
474477 id : number ;
475478 name : string ;
476- // deno-lint-ignore no-explicit-any
477- } > = await ( trpcClient . github as any ) . listReposInInstallationForUser . query ( {
478- installation_id : selectedOwner . value . id ,
479- } ) ;
479+ } > ;
480480
481481 const selectedRepo = promptSelect (
482482 "Select a github repo:" ,
@@ -491,12 +491,13 @@ async function github(
491491 }
492492 logTitle ( TITLES . githubRepo , selectedRepo . value . name ) ;
493493
494- const appDirectories : WorkspaceDetectionResult =
495- // deno-lint-ignore no-explicit-any
496- await ( trpcClient . github as any ) . detectWorkspaceForRepo . query ( {
494+ const appDirectories = await trpcClient . query (
495+ "github.detectWorkspaceForRepo" ,
496+ {
497497 owner : selectedOwner . value . login ,
498498 repo : selectedRepo . value . name ,
499- } ) ;
499+ } ,
500+ ) as WorkspaceDetectionResult ;
500501
501502 return {
502503 appDirectories,
0 commit comments