mirror of
https://github.com/denoland/deno.git
synced 2024-12-28 18:19:08 -05:00
28 lines
548 B
TypeScript
28 lines
548 B
TypeScript
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
|
interface Version {
|
|
deno: string;
|
|
v8: string;
|
|
typescript: string;
|
|
}
|
|
|
|
export const version: Version = {
|
|
deno: "",
|
|
v8: "",
|
|
typescript: ""
|
|
};
|
|
|
|
/**
|
|
* Sets the deno, v8, and typescript versions and freezes the version object.
|
|
* @internal
|
|
*/
|
|
export function setVersions(
|
|
denoVersion: string,
|
|
v8Version: string,
|
|
tsVersion: string
|
|
): void {
|
|
version.deno = denoVersion;
|
|
version.v8 = v8Version;
|
|
version.typescript = tsVersion;
|
|
|
|
Object.freeze(version);
|
|
}
|