mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-31 11:40:47 +08:00
node: signatures of module "os" have been changed
This commit is contained in:
Vendored
+24
-2
@@ -698,7 +698,29 @@ declare module "zlib" {
|
||||
}
|
||||
|
||||
declare module "os" {
|
||||
export interface CpuInfo {
|
||||
model: string;
|
||||
speed: number;
|
||||
times: {
|
||||
user: number;
|
||||
nice: number;
|
||||
sys: number;
|
||||
idle: number;
|
||||
irq: number;
|
||||
}
|
||||
}
|
||||
|
||||
export interface NetworkInterfaceInfo {
|
||||
address: string;
|
||||
netmask: string;
|
||||
family: string;
|
||||
mac: string;
|
||||
internal: boolean;
|
||||
}
|
||||
|
||||
export function tmpdir(): string;
|
||||
export function homedir(): string;
|
||||
export function endianness(): string;
|
||||
export function hostname(): string;
|
||||
export function type(): string;
|
||||
export function platform(): string;
|
||||
@@ -708,8 +730,8 @@ declare module "os" {
|
||||
export function loadavg(): number[];
|
||||
export function totalmem(): number;
|
||||
export function freemem(): number;
|
||||
export function cpus(): { model: string; speed: number; times: { user: number; nice: number; sys: number; idle: number; irq: number; }; }[];
|
||||
export function networkInterfaces(): any;
|
||||
export function cpus(): CpuInfo[];
|
||||
export function networkInterfaces(): {[index: string]: NetworkInterfaceInfo[]};
|
||||
export var EOL: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user