error TS2339: Property 'post' does not exist on type 'Agent'.
We think it's because @types/superagent is now in devDependencies, instead of dependencies. I think it should be in dependencies, because your package exports superagent types publicly. Since the superagent types are part of your public types, any package which uses your types should also include the superagent types that you export.
Upgrading from
4.3.0
to5.1.1
broke our typechecking. Code like thisnow fails with this error:
We think it's because
@types/superagent
is now indevDependencies
, instead ofdependencies
. I think it should be independencies
, because your package exportssuperagent
types publicly. Since the superagent types are part of your public types, any package which uses your types should also include thesuperagent
types that you export._Originally posted by @jthemphill in https://github.com/chaijs/chai-http/pull/310#discussion_r1833573576_