Fix tests and tsc

This commit is contained in:
Alessio Paccoia
2018-05-20 13:19:42 +02:00
parent 3c05f46d30
commit bf9421504a
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ declare namespace ps_tree {
PID: string;
STAT: string;
}
const prototype: {
};
}
+3 -2
View File
@@ -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
});
+1
View File
@@ -6,6 +6,7 @@
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [