Skip to content

Comments

Import firebase type declarations from firebase/compat#605

Merged
lupas merged 1 commit intonuxt-community:masterfrom
aseidma:fix-types
Dec 2, 2021
Merged

Import firebase type declarations from firebase/compat#605
lupas merged 1 commit intonuxt-community:masterfrom
aseidma:fix-types

Conversation

@aseidma
Copy link
Contributor

@aseidma aseidma commented Dec 2, 2021

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

@aseidma aseidma force-pushed the fix-types branch 2 times, most recently from a8d13ef to f41c018 Compare December 2, 2021 13:52
@lupas lupas merged commit 12a3c38 into nuxt-community:master Dec 2, 2021
@lupas
Copy link
Member

lupas commented Dec 2, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot find module 'firebase' or its corresponding type declarations.

2 participants