Skip to content

Commit ba65aca

Browse files
committed
fix(util-waiter): fix compiling error with waiter
1 parent 842e2a0 commit ba65aca

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/util-waiter/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
"description": "Shared utilities for client waiters for the AWS SDK",
55
"dependencies": {
66
"@aws-sdk/abort-controller": "3.0.0",
7-
"@aws-sdk/types": "3.0.0",
87
"tslib": "^1.8.0"
98
},
109
"devDependencies": {
10+
"@aws-sdk/smithy-client": "3.0.0",
11+
"@aws-sdk/types": "3.0.0",
1112
"@types/jest": "^26.0.4",
1213
"jest": "^26.1.0",
1314
"typescript": "~4.1.2"

packages/util-waiter/src/waiter.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { AbortController, Client } from "@aws-sdk/types";
1+
import { Client, SmithyConfiguration } from "@aws-sdk/smithy-client";
2+
import { AbortController, HttpHandlerOptions, MetadataBearer } from "@aws-sdk/types";
23

34
/**
45
* @internal
56
*/
6-
export type SmithyClient = Client<any, any, any>;
7+
export type SmithyClient = Client<HttpHandlerOptions, any, MetadataBearer, SmithyConfiguration<HttpHandlerOptions>>;
78
export interface WaiterConfiguration<Client extends SmithyClient> {
89
/**
910
* Required service client

0 commit comments

Comments
 (0)