UNPKG

@sentry/nextjs

Version:
18 lines (17 loc) • 771 B
import App from 'next/app'; type AppGetInitialProps = (typeof App)['getInitialProps']; /** * Create a wrapped version of the user's exported `getInitialProps` function in * a custom app ("_app.js"). * * @param origAppGetInitialProps The user's `getInitialProps` function * @param parameterizedRoute The page's parameterized route * @returns A wrapped version of the function */ export declare function wrapAppGetInitialPropsWithSentry(origAppGetInitialProps: AppGetInitialProps): AppGetInitialProps; /** * @deprecated Use `wrapAppGetInitialPropsWithSentry` instead. */ export declare const withSentryServerSideAppGetInitialProps: typeof wrapAppGetInitialPropsWithSentry; export {}; //# sourceMappingURL=wrapAppGetInitialPropsWithSentry.d.ts.map