mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
e435c2be15
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
24 lines
449 B
TypeScript
24 lines
449 B
TypeScript
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
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);
|
|
}
|