We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c08dacc commit 07cac20Copy full SHA for 07cac20
packages/nextjs/src/index.types.ts
@@ -30,8 +30,7 @@ export declare function flush(timeout?: number | undefined): PromiseLike<boolean
30
export declare function lastEventId(): string | undefined;
31
export declare function getSentryRelease(fallback?: string): string | undefined;
32
33
-interface ApiRouteHandler {
34
- (...args: any[]): any;
35
-}
36
-
37
-export declare function withSentryAPI(handler: ApiRouteHandler, parameterizedRoute: string): ApiRouteHandler;
+export declare function withSentryAPI<H extends (...args: any[]) => any>(
+ handler: H,
+ parameterizedRoute: string,
+): (...args: Parameters<H>) => Promise<ReturnType<H>>;
0 commit comments