nuxt-community / firebase-module

🔥 Easily integrate Firebase into your Nuxt project. 🔥
https://firebase.nuxtjs.org
MIT License
640 stars 99 forks source link

Import firebase type declarations from firebase/compat #605

Closed aseidma closed 2 years ago

aseidma commented 2 years ago

Type declarations are broken as types can not be inferred when working with firebase v9. I've adjusted index.d.ts to import the types from firebase/compat instead of just firebase (deprecated).

This restores type inference when working with the module.

Fixes #601

lupas commented 2 years ago

Thanks a lot, appreciate it! Published the fix with v8.1.1