@@ -2,15 +2,15 @@ import {
2
2
InjectionToken , Inject , isDevMode , ModuleWithProviders , NgModule , NgZone , Optional , PLATFORM_ID , VERSION as NG_VERSION , Version
3
3
} from '@angular/core' ;
4
4
import firebase from 'firebase/compat/app' ;
5
- import { FirebaseOptions , FirebaseAppConfig } from 'firebase/app' ;
5
+ import { FirebaseOptions , FirebaseAppSettings } from 'firebase/app' ;
6
6
import { VERSION } from '@angular/fire' ;
7
7
import { FirebaseApp } from './firebase.app' ;
8
8
9
9
export const FIREBASE_OPTIONS = new InjectionToken < FirebaseOptions > ( 'angularfire2.app.options' ) ;
10
10
export const FIREBASE_APP_NAME = new InjectionToken < string | undefined > ( 'angularfire2.app.name' ) ;
11
11
12
12
13
- export function ɵfirebaseAppFactory ( options : FirebaseOptions , zone : NgZone , nameOrConfig ?: string | FirebaseAppConfig | null ) {
13
+ export function ɵfirebaseAppFactory ( options : FirebaseOptions , zone : NgZone , nameOrConfig ?: string | FirebaseAppSettings | null ) {
14
14
const name = typeof nameOrConfig === 'string' && nameOrConfig || '[DEFAULT]' ;
15
15
const config = typeof nameOrConfig === 'object' && nameOrConfig || { } ;
16
16
config . name = config . name || name ;
@@ -48,7 +48,7 @@ const FIREBASE_APP_PROVIDER = {
48
48
providers : [ FIREBASE_APP_PROVIDER ]
49
49
} )
50
50
export class AngularFireModule {
51
- static initializeApp ( options : FirebaseOptions , nameOrConfig ?: string | FirebaseAppConfig ) : ModuleWithProviders < AngularFireModule > {
51
+ static initializeApp ( options : FirebaseOptions , nameOrConfig ?: string | FirebaseAppSettings ) : ModuleWithProviders < AngularFireModule > {
52
52
return {
53
53
ngModule : AngularFireModule ,
54
54
providers : [
0 commit comments