Type alias AwsClientStub<TClient>

AwsClientStub<TClient>: TClient extends Client<infer TInput, infer TOutput, infer TConfiguration>
    ? AwsStub<TInput, TOutput, TConfiguration>
    : never

Type for AwsStub class, but with the AWS Client class type as an only generic parameter.

Type Parameters

  • TClient

Example

let snsMock: AwsClientStub<SNSClient>;
snsMock = mockClient(SNSClient);