Skip to content

Commit

Permalink
change Promise<unknown> to Promise<never>
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe committed Feb 5, 2024
1 parent ef1e3b7 commit db73c11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ static Set<StructureShape> generateUnifiedErrorDispatcher(
writer.openBlock("const $L = async(\n"
+ " output: $T,\n"
+ " context: __SerdeContext,\n"
+ "): Promise<unknown> => {", "}", errorMethodName, responseType, () -> {
+ "): Promise<never> => {", "}", errorMethodName, responseType, () -> {
// Prepare error response for parsing error code. If error code needs to be parsed from response body
// then we collect body and parse it to JS object, otherwise leave the response body as is.
if (shouldParseErrorBody) {
Expand Down

0 comments on commit db73c11

Please sign in to comment.