From 3abc53f8119409916776a5ff277a745022b60680 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 30 Mar 2023 11:47:33 -0400 Subject: [PATCH] docs: clarify `Deno.consoleSize` returns the window size (#18508) Closes #18477 --- cli/tsc/dts/lib.deno.ns.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index ca2be7ba1b..4d41aea436 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -2294,6 +2294,10 @@ declare namespace Deno { * const { columns, rows } = Deno.consoleSize(); * ``` * + * This returns the size of the console window as reported by the operating + * system. It's not a reflection of how many characters will fit within the + * console window, but can be used as part of that calculation. + * * @category I/O */ export function consoleSize(): {