Skip to content

Commit f3a51c2

Browse files
authored
fix(smithy-client): make new field optional on resolved type (#1815)
1 parent 76d7994 commit f3a51c2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/chilled-eyes-perform.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@smithy/smithy-client": patch
3+
---
4+
5+
set protocol to optional on resolved config type

packages/smithy-client/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export interface SmithyConfiguration<HandlerOptions> {
8383
export type SmithyResolvedConfiguration<HandlerOptions> = {
8484
requestHandler: RequestHandler<any, any, HandlerOptions>;
8585
cacheMiddleware?: boolean;
86-
protocol: ClientProtocol<any, any> | $ClientProtocol<any, any>;
86+
protocol?: ClientProtocol<any, any> | $ClientProtocol<any, any>;
8787
protocolSettings?: {
8888
defaultNamespace?: string;
8989
[setting: string]: unknown;

0 commit comments

Comments
 (0)