Skip to content

Commit dcfa0be

Browse files
author
Luca Forstner
committed
Fix up type
1 parent c566814 commit dcfa0be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nextjs/src/index.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ export declare function getSentryRelease(fallback?: string): string | undefined;
3333
export declare function withSentryAPI<H extends (...args: any[]) => any>(
3434
handler: H,
3535
parameterizedRoute: string,
36-
): (...args: Parameters<H>) => Promise<ReturnType<H>>;
36+
): (...args: Parameters<H>) => ReturnType<H> extends Promise<unknown> ? ReturnType<H> : Promise<ReturnType<H>>;

0 commit comments

Comments
 (0)