You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 #310 (comment)
The text was updated successfully, but these errors were encountered: