We have developed a TypeScript type definition file so that you can easily use GoJSÂ in TypeScript code.Â We will include the GoJS.d.ts file in the release subdirectory of the site starting with version 1.2.Â But because GoJS 1.2 is completely compatible with 1.1, I believe you can use this type definition file even if you continue to use version 1.1 of GoJS as long as you do not use any of the new features.
The TypeScript definition file is still in the release directory along with the go.js and go-debug.js libraries. However we have renamed it go.d.ts for consistency. Although the filename does not really matter when using the “typings” entry in package.json.
But I stopped using /// <reference .../> a long time ago.
I just diff’ed the go.d.ts files from 1.6.24 and 1.7.3. There aren’t that many differences, and I think all are due to new features in 1.7.
But perhaps from your point of view there were more significant differences within 1.6.*, as we switched to declaring the “go” namespace and not declaring a “go” module, and explicitly declaring exports. These were needed in order to work in more environments. Perhaps you were using an old version of the .d.ts file even before upgrading to version 1.7.