Skip to content

Commit f279ba8

Browse files
AllanZhengYPsrchase
authored andcommitted
feat: make operation model accessible from commands (#242)
1 parent 3995326 commit f279ba8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/types/src/command.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { AbortSignal } from "./abort";
22
import { HttpOptions } from "./http";
33
import { Handler, MiddlewareStack } from "./middleware";
44
import { MetadataBearer } from "./response";
5+
import { OperationModel } from "./protocol";
56

67
export interface CommandInput {
78
/**
@@ -35,7 +36,7 @@ export interface Command<
3536
StreamType = Uint8Array
3637
> {
3738
readonly input: InputType;
38-
39+
readonly model: OperationModel;
3940
resolveMiddleware(
4041
stack: MiddlewareStack<ClientInput, ClientOutput, StreamType>,
4142
configuration: ResolvedConfiguration

0 commit comments

Comments
 (0)