From e8e93e4e9efb4ae29def10dbae3b8e43c06ba86b Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Tue, 6 Aug 2024 13:51:46 +0200 Subject: [PATCH] refactor(types): remove export from augmentation --- packages/pinia/src/globalExtensions.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/pinia/src/globalExtensions.ts b/packages/pinia/src/globalExtensions.ts index 0ae80d9a..c9ba25ce 100644 --- a/packages/pinia/src/globalExtensions.ts +++ b/packages/pinia/src/globalExtensions.ts @@ -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 */ -- 2.47.3