Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ts-expect-error support #69

Open
wagenet opened this issue Mar 6, 2021 · 4 comments
Open

ts-expect-error support #69

wagenet opened this issue Mar 6, 2021 · 4 comments

Comments

@wagenet
Copy link
Contributor

wagenet commented Mar 6, 2021

We prefer to use this in our code so we don't unnecessarily ignore issues that end up resolved.

@lifeart
Copy link
Owner

lifeart commented Mar 6, 2021

It should work out of the box

image

image

@wagenet
Copy link
Contributor Author

wagenet commented Mar 8, 2021

You know, I don’t think I even tried it. It wasn’t in the Docs so I just assumed it didn’t work! I’ll submit a PR later to update the docs.

@wagenet
Copy link
Contributor Author

wagenet commented Mar 8, 2021

I just tried this and I'm getting a warning about an unused @ts-expect-error, though the original error does seem to be suppressed.

@wagenet
Copy link
Contributor Author

wagenet commented Mar 17, 2021

Ah, I see, it attempts to apply it to every item on the line and not all items may have errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants