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