-
-
Notifications
You must be signed in to change notification settings - Fork 35.9k
typings: improve typings #40222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typings: improve typings #40222
Changes from 1 commit
7764c93
6cfc899
a7173b4
c2460eb
795db39
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,21 @@ | ||||||
| declare function InternalBinding(binding: 'os'): { | ||||||
| getHostname(ctx: object): string | undefined; | ||||||
| getLoadAvg(array: Float64Array): void; | ||||||
| getUptime(): number; | ||||||
| getTotalMem(): number; | ||||||
| getFreeMem(): number; | ||||||
| getCPUs(): Array<string | number>; | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
for consistency with other dts
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have a preference to use |
||||||
| getInterfaceAddresses(ctx: object): Array<string | number | boolean> | undefined; | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| getHomeDirectory(ctx: object): string | undefined; | ||||||
| getUserInfo(options: {encoding?: string} | undefined, ctx: object): { | ||||||
|
targos marked this conversation as resolved.
Outdated
|
||||||
| uid: number; | ||||||
| gid: number; | ||||||
| username: string; | ||||||
| homedir: string; | ||||||
| shell: string | null; | ||||||
| } | undefined; | ||||||
| setPriority(pid: number, priority: number, ctx: object): number; | ||||||
| getPriority(pid: number, ctx: object): number | undefined; | ||||||
| getOSInformation(ctx: object): [sysname: string, version: string, release: string]; | ||||||
| isBigEndian: boolean; | ||||||
| }; | ||||||
Uh oh!
There was an error while loading. Please reload this page.