Skip to content

Commit d703909

Browse files
committed
refactor: avoid app-types whenever possible
1 parent 14c79ae commit d703909

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

packages/nuxt/src/module.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ import {
77
addServerHandler,
88
createResolver,
99
defineNuxtModule,
10-
resolvePath,
1110
} from '@nuxt/kit'
1211
import type { NuxtModule } from '@nuxt/schema'
1312
// cannot import from firebase-admin because the build fails, maybe a nuxt bug?
14-
import type { FirebaseApp, FirebaseOptions } from '@firebase/app-types'
13+
import type { FirebaseApp, FirebaseOptions } from 'firebase/app'
1514
import type {
1615
AppOptions,
1716
ServiceAccount,

packages/nuxt/src/runtime/admin/plugin.server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { initializeApp, cert, getApp, getApps } from 'firebase-admin/app'
2-
import type { FirebaseApp } from '@firebase/app-types'
32
import { defineNuxtPlugin, useAppConfig } from '#app'
43

54
export default defineNuxtPlugin((nuxtApp) => {

packages/nuxt/src/runtime/app-check/plugin.server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { App as FirebaseAdminApp } from 'firebase-admin/app'
2+
import type { FirebaseApp } from 'firebase/app'
3+
import { CustomProvider } from 'firebase/app-check'
24
import { VueFireAppCheck } from 'vuefire'
35
import { VueFireAppCheckServer } from 'vuefire/server'
4-
import type { FirebaseApp } from '@firebase/app-types'
5-
import { CustomProvider } from 'firebase/app-check'
66
import { defineNuxtPlugin, useAppConfig } from '#app'
77

88
/**

packages/nuxt/src/runtime/auth/plugin.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { FirebaseApp } from '@firebase/app-types'
1+
import type { FirebaseApp } from 'firebase/app'
22
import type { User } from 'firebase/auth'
33
import { VueFireAuthServer } from 'vuefire/server'
44
import { UserSymbol } from '../admin/plugin-auth-user.server'

0 commit comments

Comments
 (0)