var test = 'test'; // eslint-disable-line no-var,@typescript-eslint/no-unused-vars const types = { require: typeof require, electron: typeof electron, window: typeof window, localVar: typeof window.test }; console.log(JSON.stringify(types));