2020-01-02 15:13:47 -05:00
|
|
|
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
2020-07-06 21:45:39 -04:00
|
|
|
|
2019-02-18 18:43:02 -05:00
|
|
|
interface Version {
|
|
|
|
deno: string;
|
|
|
|
v8: string;
|
|
|
|
typescript: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const version: Version = {
|
|
|
|
deno: "",
|
|
|
|
v8: "",
|
2020-03-28 13:03:49 -04:00
|
|
|
typescript: "",
|
2019-02-18 18:43:02 -05:00
|
|
|
};
|
|
|
|
|
2019-09-03 22:12:21 -04:00
|
|
|
export function setVersions(
|
|
|
|
denoVersion: string,
|
|
|
|
v8Version: string,
|
|
|
|
tsVersion: string
|
|
|
|
): void {
|
2019-02-18 18:43:02 -05:00
|
|
|
version.deno = denoVersion;
|
|
|
|
version.v8 = v8Version;
|
2019-09-03 22:12:21 -04:00
|
|
|
version.typescript = tsVersion;
|
2019-02-18 18:43:02 -05:00
|
|
|
|
|
|
|
Object.freeze(version);
|
|
|
|
}
|