File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import {
14
14
} from '@angular/fire' ;
15
15
import firebase from 'firebase/app' ;
16
16
import { proxyPolyfillCompat } from './base' ;
17
+ import { HttpsCallableOptions } from '@firebase/functions-types' ;
17
18
18
19
export const ORIGIN = new InjectionToken < string > ( 'angularfire2.functions.origin' ) ;
19
20
export const REGION = new InjectionToken < string > ( 'angularfire2.functions.region' ) ;
@@ -51,10 +52,10 @@ export class AngularFireFunctions {
51
52
shareReplay ( { bufferSize : 1 , refCount : false } )
52
53
) ;
53
54
54
- this . httpsCallable = < T = any , R = any > ( name : string ) =>
55
+ this . httpsCallable = < T = any , R = any > ( name : string , options ?: HttpsCallableOptions ) =>
55
56
( data : T ) => from ( functions ) . pipe (
56
57
observeOn ( schedulers . insideAngular ) ,
57
- switchMap ( functions => functions . httpsCallable ( name ) ( data ) ) ,
58
+ switchMap ( functions => functions . httpsCallable ( name , options ) ( data ) ) ,
58
59
map ( r => r . data as R )
59
60
) ;
60
61
You can’t perform that action at this time.
0 commit comments