Skip to content

Broken types on Console integration levels option #4878

@pkuczynski

Description

@pkuczynski

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/react

SDK Version

6.19.5

Framework Version

6.19.5

Link to Sentry event

No response

Steps to Reproduce

My init looks like this:

Sentry.init({
    dsn: '...',
    ...
    integrations: [
        new CaptureConsole({ levels: ['error'] }),
    ]
})

Expected Result

It works

Actual Result

TypeScript error is raised:

TS2322: Type '"error"' is not assignable to type '"debug"'.

I believe this was caused by #4863

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions