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:
parent
ab7b8ba8d1
commit
dd9c204884
1 changed files with 8 additions and 6 deletions
14
cli/dts/lib.deno.ns.d.ts
vendored
14
cli/dts/lib.deno.ns.d.ts
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue