Closed samtstern closed 3 years ago
Reference
type incompatibility between Firebase and GeoFire has been around for a long time.
Reference
type incompatibility between Firebase and GeoFire has been around for a long time.
Interesting what do you do to get around it?
Interesting what do you do to get around it?
I have come up with this workaround:
import { database } from 'firebase-admin'; // or 'firebase' package
import { GeoFire } from 'geofire';
import DatabaseTypes from '@firebase/database-types';
const firebaseRef = database().ref();
const geofire = new GeoFire((firebaseRef as unknown) as DatabaseTypes.Reference)
@ziyaddin thanks for sharing, that sounds like what I would do as well. The good news is that after this PR you should no longer have that conflict on the latest SDK.
Great, thanks for fixing it.
@puf please make sure to squash and merge in the future, all of my commits for this PR hit master
and there was a lot of guess and check.
Updates Firebase to the latest version. I don't think geofire has a history of doing breaking changes when we adopt a breaking underlying Firebase SDK but I am open to it.