Skip to content

Commit

Permalink
Improve Deno.version type declaration (denoland#8391)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkTiedemann authored and jannes committed Dec 1, 2020
1 parent ade1154 commit ebfd0d2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cli/dts/lib.deno.ns.d.ts
Expand Up @@ -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:
Expand Down

0 comments on commit ebfd0d2

Please sign in to comment.