@@ -53,3 +53,71 @@ export declare function wrapApiHandlerWithSentry<APIHandler extends (...args: an
5353) : (
5454 ...args : Parameters < APIHandler >
5555) => ReturnType < APIHandler > extends Promise < unknown > ? ReturnType < APIHandler > : Promise < ReturnType < APIHandler > > ;
56+
57+ /**
58+ * Wraps a `getInitialProps` function with Sentry error and performance instrumentation.
59+ *
60+ * @param getInitialProps The `getInitialProps` function
61+ * @returns A wrapped version of the function
62+ */
63+ export declare function wrapGetInitialPropsWithSentry < F extends ( ...args : any [ ] ) => any > (
64+ getInitialProps : F ,
65+ ) : ( ...args : Parameters < F > ) => ReturnType < F > extends Promise < unknown > ? ReturnType < F > : Promise < ReturnType < F > > ;
66+
67+ /**
68+ * @deprecated Use `wrapGetInitialPropsWithSentry` instead.
69+ */
70+ export declare function withSentryServerSideGetInitialProps < F extends ( ...args : any [ ] ) => any > (
71+ getInitialProps : F ,
72+ ) : ( ...args : Parameters < F > ) => ReturnType < F > extends Promise < unknown > ? ReturnType < F > : Promise < ReturnType < F > > ;
73+
74+ /**
75+ * Wraps a `getInitialProps` function of a custom `_app` page with Sentry error and performance instrumentation.
76+ *
77+ * @param getInitialProps The `getInitialProps` function
78+ * @returns A wrapped version of the function
79+ */
80+ export declare function wrapAppGetInitialPropsWithSentry < F extends ( ...args : any [ ] ) => any > (
81+ getInitialProps : F ,
82+ ) : ( ...args : Parameters < F > ) => ReturnType < F > extends Promise < unknown > ? ReturnType < F > : Promise < ReturnType < F > > ;
83+
84+ /**
85+ * @deprecated Use `wrapAppGetInitialPropsWithSentry` instead.
86+ */
87+ export declare function withSentryServerSideAppGetInitialProps < F extends ( ...args : any [ ] ) => any > (
88+ getInitialProps : F ,
89+ ) : ( ...args : Parameters < F > ) => ReturnType < F > extends Promise < unknown > ? ReturnType < F > : Promise < ReturnType < F > > ;
90+
91+ /**
92+ * Wraps a `getInitialProps` function of a custom `_document` page with Sentry error and performance instrumentation.
93+ *
94+ * @param getInitialProps The `getInitialProps` function
95+ * @returns A wrapped version of the function
96+ */
97+ export declare function wrapDocumentGetInitialPropsWithSentry < F extends ( ...args : any [ ] ) => any > (
98+ getInitialProps : F ,
99+ ) : ( ...args : Parameters < F > ) => ReturnType < F > extends Promise < unknown > ? ReturnType < F > : Promise < ReturnType < F > > ;
100+
101+ /**
102+ * @deprecated Use `wrapDocumentGetInitialPropsWithSentry` instead.
103+ */
104+ export declare function withSentryServerSideDocumentGetInitialProps < F extends ( ...args : any [ ] ) => any > (
105+ getInitialProps : F ,
106+ ) : ( ...args : Parameters < F > ) => ReturnType < F > extends Promise < unknown > ? ReturnType < F > : Promise < ReturnType < F > > ;
107+
108+ /**
109+ * Wraps a `getInitialProps` function of a custom `_error` page with Sentry error and performance instrumentation.
110+ *
111+ * @param getInitialProps The `getInitialProps` function
112+ * @returns A wrapped version of the function
113+ */
114+ export declare function wrapErrorGetInitialPropsWithSentry < F extends ( ...args : any [ ] ) => any > (
115+ getInitialProps : F ,
116+ ) : ( ...args : Parameters < F > ) => ReturnType < F > extends Promise < unknown > ? ReturnType < F > : Promise < ReturnType < F > > ;
117+
118+ /**
119+ * @deprecated Use `wrapErrorGetInitialPropsWithSentry` instead.
120+ */
121+ export declare function withSentryServerSideErrorGetInitialProps < F extends ( ...args : any [ ] ) => any > (
122+ getInitialProps : F ,
123+ ) : ( ...args : Parameters < F > ) => ReturnType < F > extends Promise < unknown > ? ReturnType < F > : Promise < ReturnType < F > > ;
0 commit comments