Skip to content

Commit 358c1ff

Browse files
authored
fix: type compatibility between command schema and type transforms (#1606)
1 parent bdc7f2f commit 358c1ff

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.changeset/fair-news-beg.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@smithy/types": patch
3+
---
4+
5+
fix Command interface compatibility with type transformers

packages/types/src/command.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Handler, MiddlewareStack } from "./middleware";
22
import { MetadataBearer } from "./response";
3-
import { OperationSchema } from "./schema/schema";
43

54
/**
65
* @public
@@ -14,7 +13,11 @@ export interface Command<
1413
> extends CommandIO<InputType, OutputType> {
1514
readonly input: InputType;
1615
readonly middlewareStack: MiddlewareStack<InputType, OutputType>;
17-
readonly schema?: OperationSchema;
16+
/**
17+
* This should be OperationSchema from @smithy/types, but would
18+
* create problems with the client transform type adaptors.
19+
*/
20+
readonly schema?: any;
1821

1922
resolveMiddleware(
2023
stack: MiddlewareStack<ClientInput, ClientOutput>,

0 commit comments

Comments
 (0)