UNPKG

@sentry/nextjs

Version:
17 lines (16 loc) 502 B
type RequestInfo = { path: string; method: string; headers: Record<string, string | string[] | undefined>; }; type ErrorContext = { routerKind: string; routePath: string; routeType: string; }; /** * Reports errors passed to the the Next.js `onRequestError` instrumentation hook. */ export declare function captureRequestError(error: unknown, request: RequestInfo, errorContext: ErrorContext): void; export {}; //# sourceMappingURL=captureRequestError.d.ts.map