Skip to content

improve(errors): accept Responses, type extractResponseBody - #3441

Draft
Dave Shoup (shouples) wants to merge 2 commits into
mainfrom
djs/issue-2683-extract-response-body-generic
Draft

improve(errors): accept Responses, type extractResponseBody#3441
Dave Shoup (shouples) wants to merge 2 commits into
mainfrom
djs/issue-2683-extract-response-body-generic

make extractResponseBody() generic and accept raw Responses

f977a64
Select commit
Loading
Failed to load commit list.
SonarQube-Confluent / SonarQube Code Analysis succeeded Aug 24, 2026 in 41s

Annotations

Check warning on line 86 in src/errors.ts

See this annotation in the file changed.

@sonarqube-confluent sonarqube-confluent / SonarQube Code Analysis

`new Error()` is too unspecific for a type check. Use `new TypeError()` instead.

[S7786] Generic "Error" should be "TypeError" when thrown after type checking
 See more on https://sonarqube.confluent.io/project/issues?id=vscode&pullRequest=3441&issues=a04b5df9-29b6-4d36-a384-ca9d6d537fb5&open=a04b5df9-29b6-4d36-a384-ca9d6d537fb5