From 67784e170154c932135019a772cbc580500763a5 Mon Sep 17 00:00:00 2001 From: hkobew Date: Mon, 2 Dec 2024 15:51:09 -0500 Subject: [PATCH] remove unused types --- packages/core/src/shared/awsClientBuilderV3.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/core/src/shared/awsClientBuilderV3.ts b/packages/core/src/shared/awsClientBuilderV3.ts index 7642952b335..63d54710fbe 100644 --- a/packages/core/src/shared/awsClientBuilderV3.ts +++ b/packages/core/src/shared/awsClientBuilderV3.ts @@ -13,8 +13,6 @@ import { DeserializeHandlerOptions, DeserializeMiddleware, HandlerExecutionContext, - HttpHandlerOptions, - MetadataBearer, Provider, RetryStrategy, UserAgent, @@ -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> export type AwsClientConstructor = new (o: AwsClientOptions) => C -interface AwsClient2 { +interface AwsClient { middlewareStack: any // Ideally this would extends MiddlewareStack, but this causes issues on client construction. } @@ -57,7 +53,7 @@ export class DefaultAWSClientBuilderV3 { return shim } - public async createAwsService( + public async createAwsService( type: AwsClientConstructor, options?: Partial, region?: string,