UNPKG

@sentry/nextjs

Version:
17 lines (16 loc) • 719 B
import { NextPage } from 'next'; type GetInitialProps = Required<NextPage>['getInitialProps']; /** * Create a wrapped version of the user's exported `getInitialProps` function * * @param origGetInitialProps The user's `getInitialProps` function * @param parameterizedRoute The page's parameterized route * @returns A wrapped version of the function */ export declare function wrapGetInitialPropsWithSentry(origGetInitialProps: GetInitialProps): GetInitialProps; /** * @deprecated Use `wrapGetInitialPropsWithSentry` instead. */ export declare const withSentryServerSideGetInitialProps: typeof wrapGetInitialPropsWithSentry; export {}; //# sourceMappingURL=wrapGetInitialPropsWithSentry.d.ts.map