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
Currently, the package file has "@types/tmp": "^0.2.0", under devDependencies. However, the types in types.d.ts directly export members of tmp. Unless the consuming app also installs @types/tmp, those types are all missing. This prevents auto-suggestion, but more importantly, prevents the type checker from being able to enforce the parameters.
Re-exported types should be in dependencies instead.
Currently, the package file has
"@types/tmp": "^0.2.0",
underdevDependencies
. However, the types intypes.d.ts
directly export members oftmp
. Unless the consuming app also installs@types/tmp
, those types are all missing. This prevents auto-suggestion, but more importantly, prevents the type checker from being able to enforce the parameters.Re-exported types should be in
dependencies
instead.E.g.
DirOptions
here can't be type checked:results in:

The text was updated successfully, but these errors were encountered: