mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00: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;
|
env?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
interface Version {
|
|
||||||
deno: string;
|
|
||||||
v8: string;
|
|
||||||
typescript: string;
|
|
||||||
}
|
|
||||||
/** Version related information. */
|
/** 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
|
/** Returns the script arguments to the program. If for example we run a
|
||||||
* program:
|
* program:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue