From: Eduardo San Martin Morote Date: Wed, 17 May 2023 07:09:07 +0000 (+0200) Subject: fix(types): use declare module vue X-Git-Tag: @pinia/nuxt@0.4.11~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7f97ddf160e999da7b639ba4fcaf554bed5f1e2;p=thirdparty%2Fvuejs%2Fpinia.git fix(types): use declare module vue This has been the recommended approach for a while and supports more cases. See https://vuejs.org/guide/typescript/options-api.html#augmenting-global-properties for more information --- diff --git a/packages/pinia/src/globalExtensions.ts b/packages/pinia/src/globalExtensions.ts index 9575fa3d..de568fe5 100644 --- a/packages/pinia/src/globalExtensions.ts +++ b/packages/pinia/src/globalExtensions.ts @@ -35,7 +35,7 @@ declare module 'vue/types/options' { } // @ts-ignore: works on Vue 3, fails in Vue 2 -declare module '@vue/runtime-core' { +declare module 'vue' { export interface ComponentCustomProperties { /** * Access to the application's Pinia