summaryrefslogtreecommitdiff
path: root/cli/dts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/dts')
-rw-r--r--cli/dts/lib.deno.ns.d.ts13
-rw-r--r--cli/dts/lib.deno.unstable.d.ts17
2 files changed, 13 insertions, 17 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts
index 0ac06dc62..eea3c7947 100644
--- a/cli/dts/lib.deno.ns.d.ts
+++ b/cli/dts/lib.deno.ns.d.ts
@@ -1901,6 +1901,19 @@ declare namespace Deno {
*/
export const File: typeof FsFile;
+ /** Gets the size of the console as columns/rows.
+ *
+ * ```ts
+ * const { columns, rows } = Deno.consoleSize();
+ * ```
+ *
+ * @category I/O
+ */
+ export function consoleSize(): {
+ columns: number;
+ rows: number;
+ };
+
/** @category I/O */
export interface SetRawOptions {
/**
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index c687848ca..416176564 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -228,23 +228,6 @@ declare namespace Deno {
/** **UNSTABLE**: New API, yet to be vetted.
*
- * Gets the size of the console as columns/rows.
- *
- * ```ts
- * const { columns, rows } = Deno.consoleSize(Deno.stdout.rid);
- * ```
- *
- * @category I/O
- */
- export function consoleSize(
- rid: number,
- ): {
- columns: number;
- rows: number;
- };
-
- /** **UNSTABLE**: New API, yet to be vetted.
- *
* Returns the release version of the Operating System.
*
* ```ts