File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
packages-exp/functions-compat/src Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,14 @@ import {
24
24
Component ,
25
25
ComponentType ,
26
26
InstanceFactory ,
27
- ComponentContainer
27
+ ComponentContainer ,
28
+ InstanceFactoryOptions
28
29
} from '@firebase/component' ;
29
- import { Functions as FunctionsServiceExp } from '@firebase/functions-exp' ;
30
+ import {
31
+ Functions as FunctionsServiceExp ,
32
+ HttpsCallableOptions ,
33
+ HttpsCallable
34
+ } from '@firebase/functions-exp' ;
30
35
31
36
declare module '@firebase/component' {
32
37
interface NameServiceMapping {
@@ -36,9 +41,17 @@ declare module '@firebase/component' {
36
41
}
37
42
}
38
43
44
+ declare module '@firebase/functions-exp' {
45
+ export function httpsCallable < RequestData = unknown , ResponseData = unknown > (
46
+ functionsInstance : FunctionsService | FunctionsServiceExp ,
47
+ name : string ,
48
+ options ?: HttpsCallableOptions
49
+ ) : HttpsCallable < RequestData , ResponseData > ;
50
+ }
51
+
39
52
const factory : InstanceFactory < 'functions-compat' > = (
40
53
container : ComponentContainer ,
41
- regionOrCustomDomain ?: string
54
+ { instanceIdentifier : regionOrCustomDomain } : InstanceFactoryOptions
42
55
) => {
43
56
// Dependencies
44
57
const app = container . getProvider ( 'app-compat' ) . getImmediate ( ) ;
You can’t perform that action at this time.
0 commit comments