Skip to content

Commit db73c11

Browse files
committed
change Promise<unknown> to Promise<never>
1 parent ef1e3b7 commit db73c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/HttpProtocolGeneratorUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ static Set<StructureShape> generateUnifiedErrorDispatcher(
332332
writer.openBlock("const $L = async(\n"
333333
+ " output: $T,\n"
334334
+ " context: __SerdeContext,\n"
335-
+ "): Promise<unknown> => {", "}", errorMethodName, responseType, () -> {
335+
+ "): Promise<never> => {", "}", errorMethodName, responseType, () -> {
336336
// Prepare error response for parsing error code. If error code needs to be parsed from response body
337337
// then we collect body and parse it to JS object, otherwise leave the response body as is.
338338
if (shouldParseErrorBody) {

0 commit comments

Comments
 (0)