#1025 introduced generated .d.ts files to enable types without requiring to parse JSDoc, which is a problem when consumed through NPM. However to keep "Go To Implementation" somewhat working, we also had to introduce declarationMap, which is kinda broken.
Now that VS Code plans to introduce a new way to get to the implementation if a .d.ts file exists, we should consider removing the declaration map if the experience is satisfactory.