Skip to content

Commit 8dc2d59

Browse files
committed
fix: update protocol-rest-json serde interface
1 parent 6dcba65 commit 8dc2d59

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

packages/protocol-rest-json/src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ export class RestJsonProtocol extends Protocol<
2020
super(handler);
2121
}
2222
serialize(
23-
serializer: RequestSerializer<HttpRequest>,
23+
serializer: RequestSerializer<HttpRequest, SerializerUtils>,
2424
input: any,
25-
utils?: SerializerUtils
25+
utils: SerializerUtils
2626
) {
27-
return serializer(input, "aws.rest-json-1.1");
27+
return serializer(input, "aws.rest-json-1.1", utils);
2828
}
2929
deserialize(
30-
parser: ResponseDeserializer<HttpResponse>,
30+
deserializer: ResponseDeserializer<HttpResponse, any, DeserializerUtils>,
3131
output: HttpResponse,
32-
utils?: DeserializerUtils
32+
utils: DeserializerUtils
3333
) {
34-
return parser(output, "aws.rest-json-1.1") as any;
34+
return deserializer(output, "aws.rest-json-1.1", utils) as any;
3535
}
3636
}

packages/types/src/middleware.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,7 @@ export interface Injectable<Input extends object, Output extends object> {
406406
injectedMiddleware: Array<InjectableMiddleware>;
407407
/**
408408
* filter function that would apply to existing middleware stack. You can
409-
* remove the middleware by reference or the tag name. Return true if you
410-
* want the corresponding middleware to be removed.
409+
* remove the middleware by reference or the tag name.
411410
*/
412411
toRemove?: Array<Middleware<Input, Output> | string>;
413412
}

0 commit comments

Comments
 (0)