@@ -34,8 +34,7 @@ if (import.meta.env.VITE_SENTRY_DSN) {
3434const container = document . getElementById ( 'root' ) ;
3535// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3636const root = createRoot ( container ! , {
37- // eslint-disable-next-line @typescript-eslint/no-explicit-any
38- onCaughtError : ( error : unknown , errorInfo : any ) => {
37+ onCaughtError : ( error : unknown , errorInfo : { componentStack ?: string } ) => {
3938 // eslint-disable-next-line no-console
4039 console . error (
4140 '[CAUGHT_ERROR] message:' ,
@@ -44,8 +43,7 @@ const root = createRoot(container!, {
4443 errorInfo ?. componentStack
4544 ) ;
4645 } ,
47- // eslint-disable-next-line @typescript-eslint/no-explicit-any
48- onUncaughtError : ( error : unknown , errorInfo : any ) => {
46+ onUncaughtError : ( error : unknown , errorInfo : { componentStack ?: string } ) => {
4947 // eslint-disable-next-line no-console
5048 console . error (
5149 '[UNCAUGHT_ERROR] message:' ,
@@ -54,7 +52,7 @@ const root = createRoot(container!, {
5452 errorInfo ?. componentStack
5553 ) ;
5654 } ,
57- } as any ) ;
55+ } ) ;
5856root . render ( < App /> ) ;
5957
6058// If you want your app to work offline and load faster, you can change
0 commit comments