Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing type for pm2.reload with optional options parameter #4614

Closed
kevindoveton opened this issue Feb 22, 2020 · 2 comments
Closed

Missing type for pm2.reload with optional options parameter #4614

kevindoveton opened this issue Feb 22, 2020 · 2 comments
Labels

Comments

@kevindoveton
Copy link
Contributor

What's going wrong?

When calling pm2.reload you can optionally pass a parameter options to customise the restart behaviour, this is not included in the types definition.

How could we reproduce this issue?

npm i pm2@4.2.2
import pm2 from 'pm2';
pm2.reload('app', { updateEnv: true }, err => {}); // Error expected 2 arguments but got 3

Supporting information

$ pm2 report
@stale
Copy link

stale bot commented May 23, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 23, 2020
@kevindoveton
Copy link
Contributor Author

fixed in #4615

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant