summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Tiedemann <www.marktiedemann@gmail.com>2020-11-16 20:36:00 +0100
committerGitHub <noreply@github.com>2020-11-16 14:36:00 -0500
commitdd9c2048849ec9bf0e1457a1bef431fd3f9be80d (patch)
treebc07b4597ab1ceca1c2c80297c710c867386a44a
parentab7b8ba8d15f37d6244784a16a3f4f3c96e38769 (diff)
Improve Deno.version type declaration (#8391)
-rw-r--r--cli/dts/lib.deno.ns.d.ts10
1 files changed, 6 insertions, 4 deletions
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: