diff --git a/src/file.ts b/src/file.ts index 1acf412..c37172f 100644 --- a/src/file.ts +++ b/src/file.ts @@ -1,5 +1,9 @@ console.log(`In environment: ${GLOBAL_SETTINGS.ENV}`); if (GLOBAL_SETTINGS.DEBUG) { - console.debug('Debug enabled'); + console.debug('Debug enabled??'); +} + +if (OTHER_GLOBAL_TYPE) { + console.debug('Other global enabled'); } diff --git a/types/global.d.ts b/types/global/index.d.ts similarity index 63% rename from types/global.d.ts rename to types/global/index.d.ts index 10bf21d..da2ce08 100644 --- a/types/global.d.ts +++ b/types/global/index.d.ts @@ -1,3 +1,6 @@ +/** Just assume this is some globally available variable. */ +declare const OTHER_GLOBAL_TYPE = true; + /** Just assume this is some globally available variable. */ declare const GLOBAL_SETTINGS: { ENV: 'development' | 'production';