]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
refactor(types): remove export from augmentation
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 6 Aug 2024 11:51:46 +0000 (13:51 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 6 Aug 2024 11:51:46 +0000 (13:51 +0200)
packages/pinia/src/globalExtensions.ts

index 0ae80d9ac972ab20c63d699d958eaf46b69bcd53..c9ba25ce2c3379051068228cc153a1a2a727d518 100644 (file)
@@ -41,8 +41,10 @@ declare module 'vue/types/options' {
  */
 // @ts-ignore: works on Vue 3, fails in Vue 2
 declare module 'vue' {
-  export interface GlobalComponents {}
-  export interface ComponentCustomProperties {
+  // This seems to be needed to not break auto import types based on the order
+  // https://github.com/vuejs/pinia/pull/2730
+  interface GlobalComponents {}
+  interface ComponentCustomProperties {
     /**
      * Access to the application's Pinia
      */