vue-screen
vue-screen copied to clipboard
feat: augment `vue` instead of `@vue/runtime-core`
After vuejs/core#11609 vue supports adding custom properties using declare module 'vue'
instead of declare module '@vue/runtime-core'
Having libraries in a project that augment both vue and @vue/runtime-core breaks type checking.
More info: Vue TypeScript Changes - nuxt.com/blog
In this PR:
- replace
declare module '@vue/runtime-core'withdeclare module 'vue' - fix
install()andVueScreenConfigObjecttypes. Otherwise tests did not pass withNo overload matches this callts error