From ad462bdbf7614927b6fd2511aba7620a806ced23 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 16 Aug 2024 15:07:30 +0100 Subject: [PATCH] fix(types): augment `vue` rather than `@vue/runtime-core` (#1565) --- packages/nuxt/src/module.ts | 2 +- src/database/optionsApi.ts | 2 +- src/firestore/optionsApi.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nuxt/src/module.ts b/packages/nuxt/src/module.ts index 9a17679a..e23e7c35 100644 --- a/packages/nuxt/src/module.ts +++ b/packages/nuxt/src/module.ts @@ -449,7 +449,7 @@ declare module '#app' { $firebaseAdminApp: FirebaseAdminApp } } -declare module '@vue/runtime-core' { +declare module 'vue' { interface ComponentCustomProperties { /** * Firebase App instance. diff --git a/src/database/optionsApi.ts b/src/database/optionsApi.ts index 2b27b7e2..4886465a 100644 --- a/src/database/optionsApi.ts +++ b/src/database/optionsApi.ts @@ -186,7 +186,7 @@ export function VueFireDatabaseOptionsAPI( type Mutable = { -readonly [P in keyof T]: T[P] } -declare module '@vue/runtime-core' { +declare module 'vue' { export interface ComponentCustomProperties { /** * Binds a reference diff --git a/src/firestore/optionsApi.ts b/src/firestore/optionsApi.ts index 033a7efc..9ca6f348 100644 --- a/src/firestore/optionsApi.ts +++ b/src/firestore/optionsApi.ts @@ -184,7 +184,7 @@ export function VueFireFirestoreOptionsAPI( } } -declare module '@vue/runtime-core' { +declare module 'vue' { export interface ComponentCustomProperties { /** * Binds a reference