Currently, I am in the process of converting a Word VSTO Add-in into the new Office Add-in format. After installing the most recent version of Visual Studio 2017 Community, I encountered an issue with using TypeScript in my code. Despite my efforts, I am unable to compile any references to Office.js and consistently receive the error message "TS2304 TypeScript (TS) Cannot find name 'Office'."
To troubleshoot, I decided to create a fresh WordWebAddin using the provided templates. Within the Functions folder, I added a new TypeScript file named file1.ts containing the following code:
(function () {
Office.initialize = function (reason) {
};
})();
My hunch is that I am overlooking a simple solution to this problem. Although I have conducted thorough research, I have not been able to locate the specific answer I need, given the extensive changes between Visual Studio 2015 and the current version.