Skip to content

fix(types): changed extended firebase instance to function #743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 10, 2019
Merged

fix(types): changed extended firebase instance to function #743

merged 4 commits into from
Aug 10, 2019

Conversation

rscotten
Copy link
Contributor

@rscotten rscotten commented Aug 10, 2019

Description

This fixes a small type error on ExtendedFirebaseInstance from

  firestore: ExtendedFirestoreInstance

to

  firestore: () => ExtendedFirestoreInstance

and also fixes the return type of the logout function from

  logout: VoidFunction;

to

  logout: () => Promise<void>

Check List

If not relevant to pull request, check off as complete

  • All tests passing
  • Docs updated with any changes or examples if applicable
  • Added tests to ensure new feature(s) work properly

Relevant Issues

rscotten and others added 3 commits February 27, 2019 20:46
merge prescottprue:Next into rscotten:next
…en/react-redux-firebase into fix-ExtendedFirebaseInstance-type2
@rscotten
Copy link
Contributor Author

@prescottprue I accidentally branched off 3.0.0-alpha.15 instead of next. Let me know if I need to redo.

@codecov
Copy link

codecov bot commented Aug 10, 2019

Codecov Report

Merging #743 into next will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             next     #743   +/-   ##
=======================================
  Coverage   82.86%   82.86%           
=======================================
  Files          30       30           
  Lines         969      969           
  Branches      177      177           
=======================================
  Hits          803      803           
  Misses        166      166

@rscotten
Copy link
Contributor Author

I made another type fix to logout and prettier formatted the whole file. I tried running npm run lint:fix but it didn't change anything. :/

@prescottprue prescottprue changed the title Type Fix: Changed extended firebase instance to function fix(types): changed extended firebase instance to function Aug 10, 2019
@prescottprue prescottprue changed the base branch from next to v3.0.0-alpha.15 August 10, 2019 16:48
@prescottprue prescottprue merged commit f4ac0ec into prescottprue:v3.0.0-alpha.15 Aug 10, 2019
@prescottprue prescottprue mentioned this pull request Aug 11, 2019
3 tasks
prescottprue added a commit that referenced this pull request Aug 11, 2019
* feat(hooks): hook rework to match existing HOC - #734 - @illuminist
* fix(hooks): remove create functions (`createUseFirestore`, `createWithFirestore`, `createUseFirebase`, `createWithFirebase`) since store selection is not necessary
* feat(auth): add custom claims - #741 - @joerex 
* fix(types): changed extended firebase instance to function - #743 - @rscotten
* fix(types): switch `typeof Firebase` to `any` (prevents issue with passing some version of Firebase JS SDK)
* fix(examples): update material  and typescript examples
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.

2 participants