Skip to content

Commit

Permalink
Change type definitions to reflect correct return type of describe()
Browse files Browse the repository at this point in the history
See https://github.com/Unitech/pm2/blob/master/lib/API.js#L1654

The describe() function returns an array, not an object. The return typehint
should be ProcessDescription[], not ProcessDescription.
  • Loading branch information
bennyt2 committed Nov 28, 2017
1 parent a435f2f commit b6d63c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function killDaemon(errback: ErrProcDescCallback): void;
* a process id, or the string “all” to indicate that all scripts should be restarted.
* @param errback
*/
export function describe(process: string|number, errback: ErrProcDescCallback): void;
export function describe(process: string|number, errback: ErrProcDescsCallback): void;

/**
* Gets the list of running processes being managed by pm2.
Expand Down

0 comments on commit b6d63c0

Please sign in to comment.