How to use Vue@csp with typescript?

I am using vue@1.0.28-csp for a chrome extension but I am not able to import it correctly into my main.js, what I am doing currently is just import it in another script tag, ignoring the Cannot find name 'Vue" errors and using the vue app as any. The problem off course is that as the extensions gets complex it is harder and harder to make it safe.

Is there a way to import Vue@csp into a typescript file?

I have tried:

  • Installing vue@csp into my node modules and importing it with import Vue from 'vue'
  • Importing with import * as Vue from ./vue-csp.js
  • Installing types@vue.

and combining those above.

Any help is appreciated.