Skip to content

Commit aed281d

Browse files
committed
fix: v1 https function type
1 parent afe815c commit aed281d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ import { wrapV1, WrappedFunction, WrappedScheduledFunction } from './v1';
3636

3737
import {wrapV2, WrappedV2Function, WrappedV2CallableFunction} from './v2';
3838

39-
type HttpsFunctionOrCloudFunctionV1<T, U> = U extends CallableFunction<any, T> &
39+
type HttpsFunctionOrCloudFunctionV1<T, U> = U extends HttpsFunction &
4040
Runnable<T>
41-
? CallableFunction<any, T> & Runnable<T>
41+
? HttpsFunction & Runnable<T>
4242
: CloudFunctionV1<T>;
4343

4444
// Re-exporting V1 (to reduce breakage)

0 commit comments

Comments
 (0)