Skip to content

Commit

Permalink
refactor: modify how firestore is imported
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSolati committed Jul 23, 2018
1 parent 7b0df7f commit 8525def
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/geofirestore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as firebase from 'firebase';
import * as firebase from 'firebase/app';
import 'firebase/firestore';

import { GeoFirestoreQuery } from './query';
import { decodeGeoFirestoreObject, degreesToRadians, encodeGeoFireObject, encodeGeohash, validateLocation, validateKey, findCoordinatesKey } from './utils';
Expand Down
3 changes: 2 additions & 1 deletion src/interfaces/geoFirestoreObj.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as firebase from 'firebase';
import * as firebase from 'firebase/app';
import 'firebase/firestore';

export interface GeoFirestoreObj {
g: string;
Expand Down
3 changes: 2 additions & 1 deletion src/interfaces/locationTracked.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as firebase from 'firebase';
import * as firebase from 'firebase/app';
import 'firebase/firestore';

export interface LocationTracked {
distanceFromCenter: number;
Expand Down
3 changes: 2 additions & 1 deletion src/interfaces/queryCriteria.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as firebase from 'firebase';
import * as firebase from 'firebase/app';
import 'firebase/firestore';

export interface QueryCriteria {
center?: firebase.firestore.GeoPoint;
Expand Down
3 changes: 2 additions & 1 deletion src/query.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as firebase from 'firebase';
import * as firebase from 'firebase/app';
import 'firebase/firestore';

import { GeoFirestore } from './geofirestore';
import { GeoCallbackRegistration } from './callbackRegistration';
Expand Down
3 changes: 2 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as firebase from 'firebase';
import * as firebase from 'firebase/app';
import 'firebase/firestore';

import { GeoFirestoreObj, QueryCriteria } from './interfaces';

Expand Down

0 comments on commit 8525def

Please sign in to comment.