Autorestart option for StartOptions in index.d.ts
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
What's going wrong?
Just a minor bug. Parameter autorestart in StartOptions object in index.d.ts file is missing. But fully supported by pm2 itself.
How could we reproduce this issue?
Just try to create pm2 process via programmatic API.

Supporting information
$ pm2 -v
4.5.5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in index.d.ts and inspect the StartOptions declaration used by the programmatic API, then compare it with the supported autorestart option described in the issue. Done means the TypeScript declaration accepts autorestart while retaining the existing StartOptions shape; verify the declaration with the project's available type-checking or test command.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100