]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
fix(types): revert declare module vue
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 18 May 2023 15:48:55 +0000 (17:48 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 18 May 2023 15:48:55 +0000 (17:48 +0200)
This seems to be causing problems without fixing any. I'm reverting this
to avoid any more trouble until we can figure out a better rollout
strategy.

packages/pinia/src/globalExtensions.ts

index de568fe5f94adc42e9733e5d3f0ae61c355ddc4a..8a1d69ddecbc4e81cac6b57943262add27e2385d 100644 (file)
@@ -34,8 +34,9 @@ declare module 'vue/types/options' {
   }
 }
 
+// TODO: figure out why it cannot be 'vue'
 // @ts-ignore: works on Vue 3, fails in Vue 2
-declare module 'vue' {
+declare module '@vue/runtime-core' {
   export interface ComponentCustomProperties {
     /**
      * Access to the application's Pinia