mirror of
https://github.com/denoland/deno.git
synced 2025-07-23 05:05:08 +00:00
loadavg and osRelease made unstable (#4938)
This commit is contained in:
parent
95a08857f1
commit
f2d5e6f58a
2 changed files with 8 additions and 0 deletions
6
cli/js/lib.deno.ns.d.ts
vendored
6
cli/js/lib.deno.ns.d.ts
vendored
|
@ -97,6 +97,9 @@ declare namespace Deno {
|
|||
* console.log(Deno.loadavg()); // e.g. [ 0.71, 0.44, 0.44 ]
|
||||
*
|
||||
* Requires `allow-env` permission.
|
||||
*
|
||||
* **Unstable** There are questions around which permission this needs. And
|
||||
* maybe should be renamed (loadAverage?)
|
||||
*/
|
||||
export function loadavg(): number[];
|
||||
|
||||
|
@ -113,6 +116,9 @@ declare namespace Deno {
|
|||
* console.log(Deno.osRelease());
|
||||
*
|
||||
* Requires `allow-env` permission.
|
||||
*
|
||||
* **Unstable** new API maybe move to Deno.build or Deno.versions? Depends on
|
||||
* sys-info, which we don't necessarally want to depend on.
|
||||
*/
|
||||
export function osRelease(): string;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue