@sentry/nextjs
Version:
Official Sentry SDK for Next.js
14 lines • 691 B
TypeScript
import type { GetServerSideProps } from 'next';
/**
* Create a wrapped version of the user's exported `getServerSideProps` function
*
* @param origGetServerSideProps The user's `getServerSideProps` function
* @param parameterizedRoute The page's parameterized route
* @returns A wrapped version of the function
*/
export declare function wrapGetServerSidePropsWithSentry(origGetServerSideProps: GetServerSideProps, parameterizedRoute: string): GetServerSideProps;
/**
* @deprecated Use `withSentryGetServerSideProps` instead.
*/
export declare const withSentryGetServerSideProps: typeof wrapGetServerSidePropsWithSentry;
//# sourceMappingURL=wrapGetServerSidePropsWithSentry.d.ts.map