Skip to content

Commit 0a39842

Browse files
committed
修改command
1 parent 6ff76b5 commit 0a39842

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

packages/sdk-core/src/client/Client.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,12 @@ export class Client {
102102

103103
async send<
104104
TInput extends CommandInput,
105+
TOutput extends any,
105106
TCommandName extends keyof CommandOutputMap
106107
>(
107-
command: Command<TInput, CommandOutputMap[TCommandName], TCommandName>,
108+
command: Command<TInput, TOutput, TCommandName>,
108109
options?: SendOptions
109-
): Promise<CommandOutputMap[TCommandName]> {
110+
): Promise<TOutput> {
110111
const stack = this.middlewareStack.merge(command.middlewareStack);
111112
const context: MiddlewareContext = {
112113
clientName: this.constructor.name,

packages/sdk-core/src/client/stsClient/api.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ import { AssumeRoleResponse } from "./types/index";
2828
// ============================================================================
2929
export type AssumeRoleCommandOutput = CommandOutput<AssumeRoleResponse>;
3030

31-
declare module "../../types/types" {
32-
interface CommandOutputMap {
33-
AssumeRoleCommand: AssumeRoleCommandOutput;
34-
}
35-
}
3631
/**
3732
* STSClient Service Client
3833
*/

0 commit comments

Comments
 (0)