Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "isofire", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -1,7 +0,7 @@ | ||
// import * as firebase from 'firebase' | ||
// import * as firebaseAdmin from 'firebase-admin' | ||
import * as firebase from 'firebase' | ||
import * as firebaseAdmin from 'firebase-admin' | ||
// import { IsofireBaseService } from './services/iso-fire-base.service'; | ||
export type IsofireOptions = { | ||
firebaseApp: any | ||
firebaseApp: firebase.app.App | firebaseAdmin.app.App | ||
} | ||
@@ -17,3 +17,3 @@ | ||
app: any | ||
app: firebaseAdmin.app.App | ||
@@ -20,0 +20,0 @@ |
@@ -7,3 +7,2 @@ import { IsofireBaseService } from './iso-fire-base.service' | ||
import { ElementOf } from '../types/generics' | ||
import * as firebaseAdmin from 'firebase-admin' | ||
@@ -72,3 +71,3 @@ export class IsofireBaseFscService<ParentType, ChildType = ElementOf<ParentType>> extends IsofireBaseService implements BasicService<ParentType, ChildType> { | ||
return this.path.pipe( | ||
map(path => (this.getIsofireApp().app as firebaseAdmin.app.App).firestore().collection(path)) | ||
map(path => this.getIsofireApp().app.firestore().collection(path)) | ||
) | ||
@@ -75,0 +74,0 @@ } |
50941
981