Loosen typings for nock host to string | Regexp | Url
dan-barrett opened this issue · comments
Line 5 in 7a82fdd
This library wraps nock in a very helpful way. However, in the above line of code, the type for the nock host
is too restrictive. This should be changed from string
to string | Regexp | Url
, which is what the underlying nock constructor takes:
https://github.com/nock/nock/blob/749ec7f518078178c8080600494577073ee7a79a/types/index.d.ts#L11