Skip to content

Broken types on Console integration levels option #4878

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: [newCaptureConsole({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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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