MCPcopy Index your code
hub / github.com/angular/angularfire / provideFunctions

Function provideFunctions

src/functions/functions.module.ts:60–82  ·  view source on GitHub ↗
(fn: (injector: Injector) => FirebaseFunctions, ...deps: any[])

Source from the content-addressed store, hash-verified

58}
59
60export 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}

Callers 1

functions.spec.tsFile · 0.90

Calls 1

functionsInstanceFactoryFunction · 0.85

Tested by

no test coverage detected