Skip to content

Commit

Permalink
fix(util-waiter): fix compiling error with waiter
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed Dec 18, 2020
1 parent e151aee commit f71b8a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/util-waiter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"description": "Shared utilities for client waiters for the AWS SDK",
"dependencies": {
"@aws-sdk/abort-controller": "3.0.0",
"@aws-sdk/types": "3.0.0",
"tslib": "^1.8.0"
},
"devDependencies": {
"@aws-sdk/smithy-client": "3.0.0",
"@aws-sdk/types": "3.0.0",
"@types/jest": "^26.0.4",
"jest": "^26.1.0",
"typescript": "~4.1.2"
Expand Down
5 changes: 3 additions & 2 deletions packages/util-waiter/src/waiter.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { AbortController, Client } from "@aws-sdk/types";
import { Client, SmithyConfiguration } from "@aws-sdk/smithy-client";
import { AbortController, HttpHandlerOptions, MetadataBearer } from "@aws-sdk/types";

/**
* @internal
*/
export type SmithyClient = Client<any, any, any>;
export type SmithyClient = Client<HttpHandlerOptions, object, MetadataBearer, SmithyConfiguration<HttpHandlerOptions>>;
export interface WaiterConfiguration<Client extends SmithyClient> {
/**
* Required service client
Expand Down

0 comments on commit f71b8a1

Please sign in to comment.