zepio/flow-custom-typedefs/find-process.js

16 lines
371 B
JavaScript
Raw Permalink Normal View History

2019-05-29 19:10:06 -07:00
declare module 'find-process' {
declare type searchType = 'pid' | 'port' | 'name';
declare type searchValue = string | number;
declare type process = {
pid: number,
ppid: number,
uid: string,
gid: string,
name: string,
bin: string,
cmd: string,
};
declare module.exports: (type: searchType, value: searchValue) => Array<process>;
}