Skip to content

Commit 7d27f93

Browse files
committed
fix: format
1 parent aed281d commit 7d27f93

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

src/main.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
// SOFTWARE.
2222

2323
import {
24-
CloudFunction as CloudFunctionV1, HttpsFunction,
24+
CloudFunction as CloudFunctionV1,
25+
HttpsFunction,
2526
Runnable,
2627
} from 'firebase-functions';
2728

@@ -30,11 +31,14 @@ import {
3031
CloudEvent,
3132
} from 'firebase-functions/v2';
3233

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';
3438

3539
import { wrapV1, WrappedFunction, WrappedScheduledFunction } from './v1';
3640

37-
import {wrapV2, WrappedV2Function, WrappedV2CallableFunction} from './v2';
41+
import { wrapV2, WrappedV2Function, WrappedV2CallableFunction } from './v2';
3842

3943
type HttpsFunctionOrCloudFunctionV1<T, U> = U extends HttpsFunction &
4044
Runnable<T>
@@ -58,7 +62,9 @@ export { WrappedV2Function } from './v2';
5862
export function wrap<T>(
5963
cloudFunction: HttpsFunction & Runnable<T>
6064
): 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>;
6268
export function wrap<T>(
6369
cloudFunction: CloudFunctionV1<T>
6470
): WrappedScheduledFunction | WrappedFunction<T>;

src/v2.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,11 @@
2020
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
// SOFTWARE.
2222

23-
import {CloudFunction, CloudEvent} from 'firebase-functions/v2';
24-
import {
25-
CallableFunction,
26-
CallableRequest
27-
} from 'firebase-functions/v2/https';
23+
import { CloudFunction, CloudEvent } from 'firebase-functions/v2';
24+
import { CallableFunction, CallableRequest } from 'firebase-functions/v2/https';
2825

29-
import {generateCombinedCloudEvent} from './cloudevent/generate';
30-
import {DeepPartial} from './cloudevent/types';
26+
import { generateCombinedCloudEvent } from './cloudevent/generate';
27+
import { DeepPartial } from './cloudevent/types';
3128
import * as express from 'express';
3229

3330
/** A function that can be called with test data and optional override values for {@link CloudEvent}
@@ -38,7 +35,7 @@ export type WrappedV2Function<T extends CloudEvent<unknown>> = (
3835
) => any | Promise<any>;
3936

4037
export type WrappedV2CallableFunction<T> = (
41-
data: CallableRequest,
38+
data: CallableRequest
4239
) => T | Promise<T>;
4340

4441
function isCallableV2Function<T extends CloudEvent<unknown>>(

0 commit comments

Comments
 (0)