(fn: (injector: Injector) => FirebaseFunctions, ...deps: any[])
| 58 | } |
| 59 | |
| 60 | export function provideFunctions(fn: (injector: Injector) => FirebaseFunctions, ...deps: any[]): EnvironmentProviders { |
| 61 | registerVersion('angularfire', VERSION.full, 'fn'); |
| 62 | |
| 63 | return makeEnvironmentProviders([ |
| 64 | DEFAULT_FUNCTIONS_INSTANCE_PROVIDER, |
| 65 | FUNCTIONS_INSTANCES_PROVIDER, |
| 66 | { |
| 67 | provide: PROVIDED_FUNCTIONS_INSTANCES, |
| 68 | useFactory: functionsInstanceFactory(fn), |
| 69 | multi: true, |
| 70 | deps: [ |
| 71 | NgZone, |
| 72 | Injector, |
| 73 | ɵAngularFireSchedulers, |
| 74 | FirebaseApps, |
| 75 | // Defensively load Auth first, if provided |
| 76 | [new Optional(), AuthInstances ], |
| 77 | [new Optional(), AppCheckInstances ], |
| 78 | ...deps, |
| 79 | ] |
| 80 | } |
| 81 | ]); |
| 82 | } |
no test coverage detected