Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit ecd9f8e

Browse files
committed
fix(admin-firestore): add types from @google-cloud/firestore
1 parent 27dce1a commit ecd9f8e

20 files changed

+86
-102
lines changed

package-lock.json

Lines changed: 36 additions & 83 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
},
2929
"license": "MIT",
3030
"devDependencies": {
31+
"@google-cloud/firestore": "^2.5.0",
3132
"@types/chai": "^4.1.7",
3233
"@types/chai-as-promised": "^7.1.0",
3334
"@types/mocha": "^5.2.7",

src/Collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { firestore } from 'firebase/app';
1+
import { firestore } from './firestore';
22
import store, { getRepository } from './store';
33
import { ICollectionQuery, ICollection, IDocumentRef, WriteTypes } from './types';
44
import { QueryBuilder, FirestoreSerializer } from './utils';

src/DocumentSnapshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Entity from './Entity';
22
import { IDocumentSnapshot, ICollection } from './types/collection.types';
33
import { IDocumentRef } from './types';
4-
import { firestore } from 'firebase/app';
4+
import { firestore } from './firestore';
55
import { FirestoreSerializer } from './utils';
66

77
export default class DocumentSnapshot <T extends Entity> implements IDocumentSnapshot<T> {

src/Query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { firestore } from 'firebase/app';
1+
import { firestore } from './firestore';
22
import { Entity } from '.';
33
import { IFieldMeta, ICollection, IQuery } from './types';
44
import QuerySnapshot from './QuerySnapshot';

src/QuerySnapshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { firestore } from 'firebase/app';
1+
import { firestore } from './firestore';
22
import Query from './Query';
33
import Entity from './Entity';
44
import { IQuerySnapshot, ICollection, DocumentChange } from './types';

src/decorators/documentRef.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { firestore } from 'firebase/app';
1+
import { firestore } from '../firestore';
22
import { IDocumentRefConfig, IDocumentRefMeta, FieldTypes, IDocumentRef, IEntity, ICollection } from '../types';
33
import FieldUtils from '../utils/FieldUtils';
44
import { getOrCreateRepository, getRepository } from '../store';

src/decorators/geoPoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { firestore } from 'firebase/app';
1+
import { firestore } from '../firestore';
22
import { FieldTypes, IGeoPointConfig, IGeoPoint, GeoPointData } from '../types';
33
import FieldUtils from '../utils/FieldUtils';
44
import { getOrCreateRepository } from '../store';

src/decorators/timestamp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { firestore } from 'firebase/app';
1+
import { firestore } from '../firestore';
22
import { FieldTypes, ITimestampConfig, WriteTypes, ITimestampMeta } from '../types';
33
import FieldUtils from '../utils/FieldUtils';
44
import { getOrCreateRepository } from '../store';

src/fields/DocumentRef.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IDocumentRef, ICollection } from '../types';
2-
import { firestore } from 'firebase/app';
2+
import { firestore } from '../firestore';
33
import { FirestoreSerializer } from '../utils';
44
import Collection from '../Collection';
55
import Entity from '../Entity';

0 commit comments

Comments
 (0)