@sentry/nextjs
Version:
Official Sentry SDK for Next.js
11 lines (10 loc) • 510 B
TypeScript
import { EdgeRouteHandler } from './types';
/**
* Wraps a Next.js edge route handler with Sentry error and performance instrumentation.
*/
export declare function wrapApiHandlerWithSentry<H extends EdgeRouteHandler>(handler: H, parameterizedRoute: string): (...params: Parameters<H>) => Promise<ReturnType<H>>;
/**
* @deprecated Use `wrapApiHandlerWithSentry` instead.
*/
export declare const withSentryAPI: typeof wrapApiHandlerWithSentry;
//# sourceMappingURL=wrapApiHandlerWithSentry.d.ts.map