@sentry/nextjs
Version:
Official Sentry SDK for Next.js
7 lines (6 loc) • 438 B
TypeScript
import { RouteHandlerContext } from './types';
/**
* Wraps a Next.js route handler with performance and error instrumentation.
*/
export declare function wrapRouteHandlerWithSentry<F extends (...args: any[]) => any>(routeHandler: F, context: RouteHandlerContext): (...args: Parameters<F>) => ReturnType<F> extends Promise<unknown> ? ReturnType<F> : Promise<ReturnType<F>>;
//# sourceMappingURL=wrapRouteHandlerWithSentry.d.ts.map