UNPKG

@sentry/nextjs

Version:
10 lines • 504 B
import type { 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