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
Runtime looks like this and works fine:
const res = { end: o.spy() } await handler(req, res) console.log("First call", res.end.calls[0]) //=> First call { this: <ref *1> { [omitted] }, args: [ 'ok' ] }
However, TS complains about further usage:
It thinks .calls is an array of arrays:
.calls
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Runtime looks like this and works fine:
However, TS complains about further usage:
It thinks
.calls
is an array of arrays:The text was updated successfully, but these errors were encountered: