1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00

Improve Deno.version type declaration (#8391)

This commit is contained in:
Mark Tiedemann 2020-11-16 20:36:00 +01:00 committed by GitHub
parent ab7b8ba8d1
commit dd9c204884
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2054,13 +2054,15 @@ declare namespace Deno {
env?: string;
};
interface Version {
deno: string;
v8: string;
typescript: string;
}
/** Version related information. */
export const version: Version;
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;
};
/** Returns the script arguments to the program. If for example we run a
* program: