Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fair-news-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@smithy/types": patch
---

fix Command interface compatibility with type transformers
7 changes: 5 additions & 2 deletions packages/types/src/command.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Handler, MiddlewareStack } from "./middleware";
import { MetadataBearer } from "./response";
import { OperationSchema } from "./schema/schema";

/**
* @public
Expand All @@ -14,7 +13,11 @@ export interface Command<
> extends CommandIO<InputType, OutputType> {
readonly input: InputType;
readonly middlewareStack: MiddlewareStack<InputType, OutputType>;
readonly schema?: OperationSchema;
/**
* This should be OperationSchema from @smithy/types, but would
* create problems with the client transform type adaptors.
*/
readonly schema?: any;

resolveMiddleware(
stack: MiddlewareStack<ClientInput, ClientOutput>,
Expand Down