DefinitelyTyped/types/ps-tree/ps-tree-tests.ts
2018-05-22 11:20:21 +02:00

10 lines
324 B
TypeScript

import ps_tree from "ps-tree";
ps_tree(1, () => {}); // $ExpectType void
ps_tree(1, (error: Error, children: ReadonlyArray<ps_tree.PS>) => {
children[0].COMMAND; // $ExpectType string
children[0].PID; // $ExpectType string
children[0].PPID; // $ExpectType string
children[0].STAT; // $ExpectType string
});