From dd9c2048849ec9bf0e1457a1bef431fd3f9be80d Mon Sep 17 00:00:00 2001 From: Mark Tiedemann Date: Mon, 16 Nov 2020 20:36:00 +0100 Subject: Improve Deno.version type declaration (#8391) --- cli/dts/lib.deno.ns.d.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'cli') diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index d8bc8d0fd..66718ea67 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -2054,13 +2054,15 @@ declare namespace Deno { env?: string; }; - interface Version { + /** Version related information. */ + export const version: { + /** Deno's version. For example: `"1.0.0"` */ deno: string; + /** The V8 version used by Deno. For example: `"8.0.0.0"` */ v8: string; + /** The TypeScript version used by Deno. For example: `"4.0.0"` */ typescript: string; - } - /** Version related information. */ - export const version: Version; + }; /** Returns the script arguments to the program. If for example we run a * program: -- cgit v1.2.3