Missing types when importing three.js for Ionic?

Thanks for that response. Just a couple of questions:

  1. In which file should I add the triple slash reference to the linked index.d.ts?
  2. Will this reference work when deploying/building on platforms like Ionic Pro or Heroku? Currently getting the same build error when deploying to Ionic Pro, even though the files work locally since I made the change manually inside node_modules.