deno/cli/js/version.ts

26 lines
451 B
TypeScript
Raw Normal View History

2020-01-02 20:13:47 +00:00
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
2020-07-07 01:45:39 +00:00
interface Version {
deno: string;
v8: string;
typescript: string;
}
export const version: Version = {
deno: "",
v8: "",
typescript: "",
};
export function setVersions(
denoVersion: string,
v8Version: string,
tsVersion: string
): void {
version.deno = denoVersion;
version.v8 = v8Version;
version.typescript = tsVersion;
Object.freeze(version);
}