From: Eduardo San Martin Morote Date: Thu, 18 May 2023 15:48:55 +0000 (+0200) Subject: fix(types): revert declare module vue X-Git-Tag: pinia@2.1.3~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3000161205e66838d872e514a9e90f73a1b37039;p=thirdparty%2Fvuejs%2Fpinia.git fix(types): revert declare module vue 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. --- diff --git a/packages/pinia/src/globalExtensions.ts b/packages/pinia/src/globalExtensions.ts index de568fe5..8a1d69dd 100644 --- a/packages/pinia/src/globalExtensions.ts +++ b/packages/pinia/src/globalExtensions.ts @@ -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