Skip to content

Commit 13f4d03

Browse files
committed
improve types further
1 parent 35d1b36 commit 13f4d03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/core/src/shared/awsClientBuilderV3.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
MiddlewareStack,
1818
Provider,
1919
RequestHandlerMetadata,
20+
RequestHandlerOutput,
2021
RetryStrategy,
2122
UserAgent,
2223
} from '@aws-sdk/types'
@@ -36,7 +37,7 @@ export interface AwsClient {
3637
middlewareStack: {
3738
add: MiddlewareStack<any, MetadataBearer>['add']
3839
}
39-
send: any
40+
send: (command: any, options: any) => Promise<any>
4041
destroy: () => void
4142
}
4243

@@ -46,7 +47,7 @@ interface AwsClientOptions {
4647
customUserAgent: UserAgent
4748
requestHandler: {
4849
metadata?: RequestHandlerMetadata
49-
handle: any
50+
handle: (req: any, options?: any) => Promise<RequestHandlerOutput<any>>
5051
destroy?: () => void
5152
}
5253
apiVersion: string

0 commit comments

Comments
 (0)