Skip to content

Commit

Permalink
remove unused types
Browse files Browse the repository at this point in the history
  • Loading branch information
Hweinstock committed Dec 2, 2024
1 parent 3e8caf6 commit 67784e1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/core/src/shared/awsClientBuilderV3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import {
DeserializeHandlerOptions,
DeserializeMiddleware,
HandlerExecutionContext,
HttpHandlerOptions,
MetadataBearer,
Provider,
RetryStrategy,
UserAgent,
Expand All @@ -26,12 +24,10 @@ import { getRequestId, getTelemetryReason, getTelemetryReasonDesc, getTelemetryR
import { extensionVersion } from '.'
import { getLogger } from './logger'
import { omitIfPresent } from './utilities/tsUtils'
import { Client, SmithyResolvedConfiguration } from '@aws-sdk/smithy-client'

export type AwsClient = Client<HttpHandlerOptions, any, MetadataBearer, SmithyResolvedConfiguration<HttpHandlerOptions>>
export type AwsClientConstructor<C> = new (o: AwsClientOptions) => C

interface AwsClient2 {
interface AwsClient {
middlewareStack: any // Ideally this would extends MiddlewareStack<Input, Output>, but this causes issues on client construction.
}

Expand All @@ -57,7 +53,7 @@ export class DefaultAWSClientBuilderV3 {
return shim
}

public async createAwsService<C extends AwsClient2>(
public async createAwsService<C extends AwsClient>(
type: AwsClientConstructor<C>,
options?: Partial<AwsClientOptions>,
region?: string,
Expand Down

0 comments on commit 67784e1

Please sign in to comment.