GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — typings: define types for os binding · nodejs/node@9467cba

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tsconfig.json
  • typings/internalBinding
    • os.d.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tsconfig.json‎

Copy file name to clipboardExpand all lines: tsconfig.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"./typings/internalBinding/http_parser.d.ts",
77
"./typings/internalBinding/messaging.d.ts",
88
"./typings/internalBinding/options.d.ts",
9+
"./typings/internalBinding/os.d.ts",
910
"./typings/internalBinding/serdes.d.ts",
1011
"./typings/internalBinding/timers.d.ts",
1112
"./typings/internalBinding/util.d.ts",
Collapse file

‎typings/internalBinding/os.d.ts‎

Copy file name to clipboard
+21Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
declare function InternalBinding(binding: 'os'): {
2+
getHostname(ctx: {}): string | undefined;
3+
getLoadAvg(array: Float64Array): void;
4+
getUptime(): number;
5+
getTotalMem(): number;
6+
getFreeMem(): number;
7+
getCPUs(): Array<string | number>;
8+
getInterfaceAddresses(ctx: {}): Array<string | number | boolean> | undefined;
9+
getHomeDirectory(ctx: {}): string | undefined;
10+
getUserInfo(options: { encoding?: string } | undefined, ctx: {}): {
11+
uid: number;
12+
gid: number;
13+
username: string;
14+
homedir: string;
15+
shell: string | null;
16+
} | undefined;
17+
setPriority(pid: number, priority: number, ctx: {}): number;
18+
getPriority(pid: number, ctx: {}): number | undefined;
19+
getOSInformation(ctx: {}): [sysname: string, version: string, release: string];
20+
isBigEndian: boolean;
21+
};

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.