mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Fix tests and tsc
This commit is contained in:
Vendored
+1
-1
@@ -10,7 +10,7 @@ declare namespace ps_tree {
|
||||
PID: string;
|
||||
STAT: string;
|
||||
}
|
||||
|
||||
|
||||
const prototype: {
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import * as ps_tree from "ps-tree";
|
||||
|
||||
ps_tree(1, (error: Error, children: ps_tree.PS[]) => {
|
||||
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
|
||||
}); // $ExpectType void
|
||||
});
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
|
||||
Reference in New Issue
Block a user