Open UncleSamSwiss opened 3 years ago
to circumvent that, write an ambient file ps-tree.d.ts
with this content:
declare namespace ps_tree {
interface PS {
COMM: string
}
}
I don't think there's a way to address this besides making PS
having both COMMAND
and COMM
props (marked as optional would better, I guess).
When running ps-tree on a Mac, the resulting array looks as follows:
The type definition (done by @alessiopcc) does thus not work: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/57293cfddb2e48ff8c7deaa7ee3ac0101d83d014/types/ps-tree/index.d.ts#L8-L13
It would be great, if either the type definition is fixed or if ps-tree returned the same array for Mac as it does for other systems.
I would prefer to have the same type for Mac and others.