@@ -15,7 +15,7 @@ import {
1515
1616export const captureException = (
1717 error : Error ,
18- context ?: Record < string , any > ,
18+ context ?: Record < string , unknown > ,
1919) => {
2020 if ( isSentryDisabled ) {
2121 return ;
@@ -27,7 +27,7 @@ export const captureException = (
2727
2828export const captureFeedback = (
2929 feedback : string ,
30- context ?: Record < string , any > ,
30+ context ?: Record < string , unknown > ,
3131) => {
3232 if ( isSentryDisabled ) {
3333 return ;
@@ -36,18 +36,18 @@ export const captureFeedback = (
3636 sentryCaptureFeedback (
3737 {
3838 message : feedback ,
39- name : context ?. name ,
40- email : context ?. email ,
39+ name : context ?. name as string | undefined ,
40+ email : context ?. email as string | undefined ,
4141 tags : {
42- category : context ?. category || 'general' ,
43- source : context ?. source || 'feedback_modal' ,
42+ category : ( context ?. category as string ) || 'general' ,
43+ source : ( context ?. source as string ) || 'feedback_modal' ,
4444 } ,
4545 } ,
4646 {
4747 captureContext : {
4848 tags : {
49- category : context ?. category || 'general' ,
50- source : context ?. source || 'feedback_modal' ,
49+ category : ( context ?. category as string ) || 'general' ,
50+ source : ( context ?. source as string ) || 'feedback_modal' ,
5151 } ,
5252 } ,
5353 } ,
@@ -56,7 +56,7 @@ export const captureFeedback = (
5656
5757export const captureMessage = (
5858 message : string ,
59- context ?: Record < string , any > ,
59+ context ?: Record < string , unknown > ,
6060) => {
6161 if ( isSentryDisabled ) {
6262 return ;
0 commit comments