Skip to content

feat: update TypeScript definitions for PM2 6.0.5 #5970

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

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

elighter
Copy link

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License AGPL-3.0
Doc PR -

This PR updates the TypeScript type definitions to match PM2 6.0.5 and improves type safety:

  • Update version from 2.7.1 to 6.0.5
  • Replace any types with more specific types
  • Add detailed type definitions for axm_actions, axm_monitor and versioning
  • Add new StartOptions properties with proper documentation
  • Improve JSDoc comments and examples
  • Make Command interface properties non-optional with proper null handling
  • Add specific type for exec_mode

Breaking Changes:

  • Command interface properties are now required (but can be null)
  • exec_mode is now strictly typed as 'fork' | 'cluster'

This change improves type safety and developer experience when using PM2 with TypeScript.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Your Name seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

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

Successfully merging this pull request may close these issues.

2 participants