We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typechecking of graphql data response doesn't work in versions >0.24.0. See example below
msw: 0.25.0
nodejs: 15.6.0
npm: 7.4.1
Consider this code in [email protected]:
[email protected]
interface GetUsers { users: { id: number; login: string }[] } // ... server.use( graphql.query<GetUsers>('GetUsers', (req, res, ctx) => res(ctx.data({}))), )
This will produce a typechecking error, which is expected:
Argument of type '{}' is not assignable to parameter of type 'GetUsers'.
In [email protected] I see no error in the above code.
I expected to see a typechecking error in [email protected]
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
Typechecking of graphql data response doesn't work in versions >0.24.0. See example below
Environment
msw: 0.25.0
nodejs: 15.6.0
npm: 7.4.1
To Reproduce
Consider this code in
[email protected]
:This will produce a typechecking error, which is expected:
In
[email protected]
I see no error in the above code.Expected behavior
I expected to see a typechecking error in
[email protected]
The text was updated successfully, but these errors were encountered: