21
21
// SOFTWARE.
22
22
23
23
import {
24
- CloudFunction as CloudFunctionV1 , HttpsFunction ,
24
+ CloudFunction as CloudFunctionV1 ,
25
+ HttpsFunction ,
25
26
Runnable ,
26
27
} from 'firebase-functions' ;
27
28
@@ -30,11 +31,14 @@ import {
30
31
CloudEvent ,
31
32
} from 'firebase-functions/v2' ;
32
33
33
- import { CallableFunction , HttpsFunction as HttpsFunctionV2 } from 'firebase-functions/v2/https' ;
34
+ import {
35
+ CallableFunction ,
36
+ HttpsFunction as HttpsFunctionV2 ,
37
+ } from 'firebase-functions/v2/https' ;
34
38
35
39
import { wrapV1 , WrappedFunction , WrappedScheduledFunction } from './v1' ;
36
40
37
- import { wrapV2 , WrappedV2Function , WrappedV2CallableFunction } from './v2' ;
41
+ import { wrapV2 , WrappedV2Function , WrappedV2CallableFunction } from './v2' ;
38
42
39
43
type HttpsFunctionOrCloudFunctionV1 < T , U > = U extends HttpsFunction &
40
44
Runnable < T >
@@ -58,7 +62,9 @@ export { WrappedV2Function } from './v2';
58
62
export function wrap < T > (
59
63
cloudFunction : HttpsFunction & Runnable < T >
60
64
) : WrappedFunction < T , HttpsFunction & Runnable < T > > ;
61
- export function wrap < T > ( cloudFunction : CallableFunction < any , T > ) : WrappedV2CallableFunction < T > ;
65
+ export function wrap < T > (
66
+ cloudFunction : CallableFunction < any , T >
67
+ ) : WrappedV2CallableFunction < T > ;
62
68
export function wrap < T > (
63
69
cloudFunction : CloudFunctionV1 < T >
64
70
) : WrappedScheduledFunction | WrappedFunction < T > ;
0 commit comments