Description:
CSP violation events reported by Sentry have event.type === 'csp', but the current EventType type in the SDK does not include 'csp'. This causes TypeScript errors when handling CSP events in beforeSend.
Reference:
EventType definition (line 69)
Proposed fix:
Add 'csp' to EventType:
export type EventType =
| 'transaction'
| 'profile'
| 'replay_event'
| 'feedback'
| 'csp'
| undefined;
Why:
The SDK emits CSP events with type: 'csp', so TypeScript definitions should accurately represent this.
Description:
CSP violation events reported by Sentry have
event.type === 'csp', but the currentEventTypetype in the SDK does not include'csp'. This causes TypeScript errors when handling CSP events inbeforeSend.Reference:
EventTypedefinition (line 69)Proposed fix:
Add
'csp'toEventType:Why:
The SDK emits CSP events with
type: 'csp', so TypeScript definitions should accurately represent this.