44 */
55import * as vscode from 'vscode'
66import globals from '../extensionGlobals'
7- import { AwsClient , AwsClientConstructor } from '../awsClientBuilderV3'
7+ import { AwsClient , AwsClientConstructor , AwsCommand } from '../awsClientBuilderV3'
88import { pageableToCollection } from '../utilities/collectionUtils'
99
1010export abstract class ClientWrapper < C extends AwsClient > implements vscode . Disposable {
@@ -23,15 +23,19 @@ export abstract class ClientWrapper<C extends AwsClient> implements vscode.Dispo
2323 return this . client !
2424 }
2525
26- protected async makeRequest < CommandInput extends object , Command extends object > (
26+ protected async makeRequest < CommandInput extends object , Command extends AwsCommand > (
2727 command : new ( o : CommandInput ) => Command ,
2828 commandOptions : CommandInput
2929 ) {
3030 const client = await this . getClient ( )
3131 return await client . send ( new command ( commandOptions ) )
3232 }
3333
34- protected makePaginatedRequest < CommandInput extends object , CommandOutput extends object , Command extends object > (
34+ protected makePaginatedRequest <
35+ CommandInput extends object ,
36+ CommandOutput extends object ,
37+ Command extends AwsCommand ,
38+ > (
3539 command : new ( o : CommandInput ) => Command ,
3640 commandOptions : CommandInput ,
3741 collectKey : keyof CommandOutput & string ,
0 commit comments