Closed rchl closed 1 year ago
With Sentry configuration like:
sentry: { dsn: 'xxx', config: { beforeSend(event, hint) { return event; }, }, },
The event and hint arguments to beforeSend are typed as any. This is because of usage of DeepPartial:
event
hint
beforeSend
any
DeepPartial
type DeepPartial<T> = { [P in keyof T]?: T[P] extends Array<infer I> ? Array<DeepPartial<I>> : DeepPartial<T[P]>; } type DeepPartialModuleConfiguration = DeepPartial<ModuleConfiguration>
It doesn't happen when DeepPartial is not used.
FYI: @rtibaldo since you've introduced DeepPartial.
With Sentry configuration like:
The
event
andhint
arguments tobeforeSend
are typed asany
. This is because of usage ofDeepPartial
:It doesn't happen when
DeepPartial
is not used.FYI: @rtibaldo since you've introduced
DeepPartial
.