diff --git a/project/src/global.d.ts b/project/src/global.d.ts new file mode 100644 index 00000000..6eed4137 --- /dev/null +++ b/project/src/global.d.ts @@ -0,0 +1,14 @@ +export type {}; + +declare global { + var G_DEBUG_CONFIGURATION: boolean; + var G_RELEASE_CONFIGURATION: boolean; + var G_MODS_ENABLED: boolean; + var G_MODS_TRANSPILE_TS: boolean; + var G_LOG_REQUESTS: boolean; + var G_WATERMARK_ENABLED: boolean; + + var G_SPTVERSION: string; + var G_COMMIT: string; + var G_BUILDTIME: number; +} diff --git a/project/src/ide/TestEntry.ts b/project/src/ide/TestEntry.ts index d37d4685..e6513e3a 100644 --- a/project/src/ide/TestEntry.ts +++ b/project/src/ide/TestEntry.ts @@ -16,7 +16,7 @@ globalThis.G_WATERMARK_ENABLED = false; globalThis.G_SPTVERSION = ""; globalThis.G_COMMIT = ""; -globalThis.G_BUILDTIME = ""; +globalThis.G_BUILDTIME = 0; const program = new Program(); program.start();