diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-02-14 12:35:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 12:35:38 +0100 |
commit | 201737c518237b271b5bbbd8e2b1fd19ce51fdd9 (patch) | |
tree | 49a4da83ee9c6cdb7a9798f3d6f1430e027913c0 /cli | |
parent | 2502a37d41e8a7f279af74d7dacc009ee1010f67 (diff) |
feat: stabilize Deno.osUptime() (#17554)
This commit stabilizes "Deno.osUptime()" API. The "--unstable" flag is
no longer required to use this API.
Diffstat (limited to 'cli')
-rw-r--r-- | cli/tsc/dts/lib.deno.ns.d.ts | 14 | ||||
-rw-r--r-- | cli/tsc/dts/lib.deno.unstable.d.ts | 15 |
2 files changed, 14 insertions, 15 deletions
diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index 93e1b54a6..154b5f15f 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -447,6 +447,20 @@ declare namespace Deno { export function osRelease(): string; /** + * Returns the Operating System uptime in number of seconds. + * + * ```ts + * console.log(Deno.osUptime()); + * ``` + * + * Requires `allow-sys` permission. + * + * @tags allow-sys + * @category Runtime Environment + */ + export function osUptime(): number; + + /** * Options which define the permissions within a test or worker context. * * `"inherit"` ensures that all permissions of the parent process will be diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts index e2abab26d..822425d05 100644 --- a/cli/tsc/dts/lib.deno.unstable.d.ts +++ b/cli/tsc/dts/lib.deno.unstable.d.ts @@ -1406,21 +1406,6 @@ declare namespace Deno { * @category HTTP Server */ export function upgradeHttpRaw(request: Request): [Deno.Conn, Uint8Array]; - - /** **UNSTABLE**: New API, yet to be vetted. - * - * Returns the Operating System uptime in number of seconds. - * - * ```ts - * console.log(Deno.osUptime()); - * ``` - * - * Requires `allow-sys` permission. - * - * @tags allow-sys - * @category Runtime Environment - */ - export function osUptime(): number; } /** **UNSTABLE**: New API, yet to be vetted. |