Unitech / Unitech/pm2

Autorestart option for StartOptions in index.d.ts

Open
#5,006 1 comment 0 reactions 0 assignees View on GitHub

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.

image

Supporting information

$ pm2 -v
4.5.5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.