mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
I was working on removing the `no-any-union` lint override and realized
that `any` was being used in several places where a plain objected was
intended. It was also covering up that reply bodies can be Buffers or
Streams.
[Docs for specifying replies](https://github.com/nock/nock#specifying-replies)
Note: There was a bug in place. Previously, the types allowed for `reply`
to take two args, a callback and an object of headers. However, this
form is not documented and turns out to not be functional when
inspecting [the source](
|
||
|---|---|---|
| .. | ||
| index.d.ts | ||
| nock-tests.ts | ||
| tsconfig.json | ||
| tslint.json | ||