Unable to use HttpResponse.error() with TypeScript #2130
Labels
api:graphql
bug
Something isn't working
needs:triage
Issues that have not been investigated yet.
scope:node
Related to MSW running in Node
scope:typescript
Prerequisites
Environment check
msw
versionNode.js version
v20.12.1
Reproduction repository
https://codesandbox.io/p/sandbox/friendly-pare-8tkfgz?file=%2Fmocks%2Fhandlers.ts
Reproduction steps
npx tsc
Current behavior
Adding a
return HttpResponse.error()
results in a TS error:Expected behavior
No error.
The text was updated successfully, but these errors were encountered: