mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
fix bugs
This commit is contained in:
Vendored
-12
@@ -1,12 +0,0 @@
|
||||
// Type definitions for pidusage 1.1
|
||||
// Project: https://github.com/soyuka/pidusage
|
||||
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export interface Stat {
|
||||
cpu: number;
|
||||
memory: number;
|
||||
}
|
||||
|
||||
export function stat(pid: number, callback: (error: Error, stat: Stat) => void): void;
|
||||
export function unmonitor(pid: number): void;
|
||||
@@ -1,8 +0,0 @@
|
||||
import pusage = require("pidusage");
|
||||
|
||||
pusage.stat(0, (err: Error, stat: pusage.Stat) => {
|
||||
const cpu = stat.cpu;
|
||||
const memory = stat.memory;
|
||||
});
|
||||
|
||||
pusage.unmonitor(0);
|
||||
@@ -1,26 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../../",
|
||||
"typeRoots": [
|
||||
"../../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"paths": {
|
||||
"pidusage": [ "pidusage/v1.1" ]
|
||||
},
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"pidusage-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user