From: Eduardo San Martin Morote Date: Tue, 6 Aug 2024 11:51:46 +0000 (+0200) Subject: refactor(types): remove export from augmentation X-Git-Tag: @pinia/nuxt@0.5.3~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8e93e4e9efb4ae29def10dbae3b8e43c06ba86b;p=thirdparty%2Fvuejs%2Fpinia.git refactor(types): remove export from augmentation --- 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 */