Skip to content

Issue with arguments being typed as any in module configuration #538

@rchl

Description

@rchl

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions